-include .depend
endif
+config.h:
+ cp config.h.in $@
+
%.h:
@true
-.depend: $(SOURCES)
- @echo "#define cparser_REVISION \"`svnversion -n .`\"" > .revision.h
+REVISION ?= $(shell svnversion -n .)
+
+.depend: config.h $(SOURCES)
+ @echo "#define cparser_REVISION \"$(REVISION)\"" > .revision.h
$(Q)if diff -Nq .revision.h revision.h > /dev/null; then \
rm .revision.h; \
else \
@echo '===> CREATE_BUILTINS $<'
$(Q)./create_builtins_h.sh > $@
+main.c: builtins.h
+
build/cpb/%.o: %.c build/cparser
@echo '===> CPARSER $<'
$(Q)./build/cparser $(CPPFLAGS) -std=c99 -Wall -g3 -c $< -o $@