X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=Makefile;h=34b231fca858a3986b503553a7109885900f3658;hb=42fd8154a43a0c62c64f87b2d248fa73615071b9;hp=017f797d864a4a27e044d2b4f0bd99c9060c17a4;hpb=5e2512551793296b59bb85327620ad0f390fce41;p=cparser diff --git a/Makefile b/Makefile index 017f797..34b231f 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,6 @@ SOURCES := \ adt/xmalloc.c \ ast.c \ ast2firm.c \ - config.h \ diagnostic.c \ entitymap.c \ format_check.c \ @@ -75,8 +74,10 @@ config.h: %.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 \