Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - customize makefile: (3 Items)
   
customize makefile  
Hi all,

I need to customize the PhAB makefile to copy the binary to a specific directory after compilation but i can't figure 
how. 

I could do this my self but i really want to automate the process.

Thanks in advance.
Gutemberg.



Re: customize makefile  
You can use the POST_BUILD macro. Add it to the common.mk in the root of your project.

For example:
POST_BUILD=cp blah /tmp

or something like this:

define POST_BUILD
$(RM_HOST) $(HOME)/bin/$@
$(CP_HOST) $@ $(HOME)/bin
enddef

Once the target is built this command will be executed.
Here is the link to the docs: http://www.qnx.com/developers/docs/6.4.1/neutrino/prog/make_convent.html search for 
POST_BUILD.
Re: customize makefile  
I'd tried this before but i was using the POST_BUILD macro at the begging of the common.mk file and it didn't work. And 
the end of the file....worked!!!

thanks for the help!