X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=Makefile.in;h=06c86eb622247a2944f26a762e6f0986cdc2fe25;hp=c64b5ae7250ce5cceb178f39089319ae38894a11;hb=be9f7c9b442f7b723427a79f85774d5fa7718425;hpb=7e37a7cf49df279b9ab467fa4f62dd376c791a26;ds=sidebyside diff --git a/Makefile.in b/Makefile.in index c64b5ae7..06c86eb6 100644 --- a/Makefile.in +++ b/Makefile.in @@ -16,6 +16,8 @@ uname_rs := $(shell uname -rs) cc_version := $(shell $(CC) --version | head -n 1) codename := deterministic entropy +GIT_VERSION := $(shell ./GIT-VERSION-GEN git-version.h) + DEBUG_CPPFLAGS += -Wno-sign-compare -g -Wunused -Wundef -W DEBUG_CPPFLAGS += -Wredundant-decls # produces false positives @@ -59,7 +61,6 @@ CPPFLAGS += @arch_cppflags@ CPPFLAGS += -I/usr/local/include CPPFLAGS += -I$(cmdline_dir) CPPFLAGS += @osl_cppflags@ -CPPFLAGS += -DGIT_VERSION='"$(GIT_VERSION)"' man_pages := $(patsubst %, man/man1/%.1, @executables@) man_pages_in := $(patsubst %, web/%.man.in.html, @executables@) @@ -99,18 +100,12 @@ else Q = @ endif -.PHONY: dep all clean distclean maintainer-clean install man tarball\ - .FORCE-GIT-VERSION-FILE +.PHONY: dep all clean distclean maintainer-clean install man tarball all: dep @executables@ $(man_pages) dep: $(deps) man: $(man_pages) tarball: $(tarball) -GIT-VERSION-FILE: .FORCE-GIT-VERSION-FILE - @./GIT-VERSION-GEN GIT-VERSION-FILE --include GIT-VERSION-FILE -@executables@: GIT-VERSION-FILE - -include $(ggo_dir)/makefile %_command_list.c: %.cmd @@ -303,7 +298,7 @@ $(tarball): $(cmdline_generated) git archive --format=tar --prefix=$(tarball_pfx)/ HEAD \ | tar --delete $(tarball_delete) > $(tarball_pfx).tar mkdir -p $(tarball_pfx)/$(cmdline_dir) - echo $(GIT_VERSION) > $(tarball_pfx)/VERSION + ./GIT-VERSION-GEN > $(tarball_pfx)/VERSION cp -r $(autocrap) $(tarball_pfx) cp -r $(cmdline_generated) $(tarball_pfx)/$(cmdline_dir) tar rf $(tarball_pfx).tar $(tarball_pfx)/*