X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=Makefile.in;h=06c86eb622247a2944f26a762e6f0986cdc2fe25;hp=1a0c1fa34a3e7cecf0c5ee9cc77b34c4cda29d9f;hb=be9f7c9b442f7b723427a79f85774d5fa7718425;hpb=90560de0d7e4d825772270f9ac7cbefbb38aad97 diff --git a/Makefile.in b/Makefile.in index 1a0c1fa3..06c86eb6 100644 --- a/Makefile.in +++ b/Makefile.in @@ -14,7 +14,9 @@ build_date := $(shell date) uname_s := $(shell uname -s 2>/dev/null || echo "UNKNOWN_OS") uname_rs := $(shell uname -rs) cc_version := $(shell $(CC) --version | head -n 1) -codename := persistent regularity +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 @@ -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,17 +100,12 @@ else Q = @ endif -.PHONY: all clean distclean maintainer-clean install man tarball\ - .FORCE-GIT-VERSION-FILE -all: @executables@ $(man_pages) +.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 @@ -224,8 +220,10 @@ all_objs := $(recv_objs) $(filter_objs) $(client_objs) $(gui_objs) \ $(audiod_objs) $(audioc_objs) $(fade_objs) $(server_objs) \ $(write_objs) $(afh_objs) +deps := $(all_objs:.o=.d) + ifeq ($(findstring clean, $(MAKECMDGOALS)),) --include $(all_objs:.o=.d) +-include $(deps) endif para_recv: $(recv_objs) @@ -300,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)/*