Custombuild and Makefile Options

cyPHunk

Verified User
Joined
Aug 25, 2006
Messages
15
Hello,

When using Custombuild to update a piece of software on DA server. I would like to modify some options in the make file before building.

It doesnt allow me to however.

If I ./build SERVICENAME... it downloads the files, extracts them and then starts installing.

If I interupt this process after it has extracted the files, and I modify the Makefile, when I run the ./build SERVICENAME command again it re-downloads and re-extracts the files, overwriting the Makefile. So my options get lost.

Any help would be much appreciated.

cyPH
 
Hello,

When using Custombuild to update a piece of software on DA server. I would like to modify some options in the make file before building.

It doesnt allow me to however.

If I ./build SERVICENAME... it downloads the files, extracts them and then starts installing.

If I interupt this process after it has extracted the files, and I modify the Makefile, when I run the ./build SERVICENAME command again it re-downloads and re-extracts the files, overwriting the Makefile. So my options get lost.

Any help would be much appreciated.

cyPH

Why don't you just use custom/ folder? If you'd like to execute something (for example) like "perl -pi -e 's/Build complete/Build is now finished/' Makefile.global" to replace "Build complete" to "Build is now finished" in makefile, you just add a perl regex to a copy of "configure/ap2/configure.php*" files and place them under custom/ap2. Thank you for your question :)
 
Hello Martynas,

Do I understand it correct, that if to add custom code into "configure/ap2/configure.php" the following way:

Code:
#!/bin/sh

echo "Running pre-configure custom code";
#
# here is coming my custom code
#

"./configure" \
#
# skipped lines...
#

echo "Running post-configure custom code";
#
# here is coming my custom code which runs after configure
#


it will print "Running pre-configure custom code" and "Running post-configure custom code" and execute other custom code every time I build PHP. Right?
 
Last edited:
Hello Martynas,

Do I understand it correct, that if to add custom code into "configure/ap2/configure.php" the following way:

Code:
#!/bin/sh

echo "Running pre-configure custom code";
#
# here is coming my custom code
#

"./configure" \
#
# skipped lines...
#

echo "Running post-configure custom code";
#
# here is coming my custom code which runs after configure
#


it will print "Running pre-configure custom code" and "Running post-configure custom code" and execute other custom code every time I build PHP. Right?

Yes, you are right.
 
Back
Top