awk systime() is not standard; hope to have better luck with date +%s

This commit is contained in:
Vitor Santos Costa 2009-11-04 09:04:13 +00:00
parent 717d6ac4c8
commit 6870ba039d
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ parms.h: Makefile
@echo "#define YAP_CFLAGS \"$(CFLAGS)\"" >> $@%
@echo "#define YAP_LDFLAGS \"$(LDFLAGS)\"" >> $@%
@echo "#define YAP_SHLIB_SUFFIX \"$(SHLIB_SUFFIX)\"" >> $@%
@echo | $(AWK) '{ printf("#define YAP_TIMESTAMP %d\n", systime()); }' >> $@%
@echo "#define YAP_TIMESTAMP \"`date +%s`\"" >> $@%
@if cmp -s $@% $@; then rm $@%; else mv $@% $@; fi