Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - PRE_BUILD macro: (2 Items)
   
PRE_BUILD macro  
Hi
I need to run a command before compiling a QNX C++ project.

I try to add the following in common.mk

define PRE_BUILD
-@SubWCRev.exe $(PROJECT_ROOT) $(PROJECT_ROOT)/version.tmpl $(PROJECT_ROOT)/version.h
endef

but it seems that the macro is run after the compilation. What can I do to make it execute before the compilation?
Re: PRE_BUILD macro  
Solved it using:
PRE_TARGET=UPDATE_REVISION
UPDATE_REVISION:
	SubWCRev.exe $(PROJECT_ROOT) $(PROJECT_ROOT)/version.tmpl $(PROJECT_ROOT)/version.h