I want to dynamically change rules of my makefile.
Does anyone known why my 'ifeq' test is always evaluate as false even if
date (PRJ_DATE) is present in version.h file ?
When test ifeq is evaluate, before or after SEARCH_DATE evaluation ?
If you have other easy method to do that, let me know about it !
Thnaks,

Sebastien.



PRJ_DATE=05-11-2004
H_FILE_VERSION=../h/version.h



SEARCH_DATE := `cat ${H_FILE_VERSION} | grep ${PRJ_DATE}`

# Generate version.h file in case of current date (PRJ_DATE) is not present
ifeq ($(SEARCH_DATE),)
gen_version:
        @echo 'generation version file'
        ...

else
gen_version:
        @echo 'Do nothing'
        ...
endif




_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to