X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=Makefile.real;h=cc8225ba07852de3779fd21742b59442ba0cf336;hp=59579e27cda64920d50184776eb71143768199f3;hb=5e8d8a8eea6de9459ebdf4498f9f061c84bfa63a;hpb=d38109ab121b2dce9a40d3f8649d0bc1df0ffab2 diff --git a/Makefile.real b/Makefile.real index 59579e27..cc8225ba 100644 --- a/Makefile.real +++ b/Makefile.real @@ -1,3 +1,12 @@ +# Implicit rules are implemented in make as suffix rules. The following rule +# empties the suffix list to disable the predefined implicit rules. This +# increases performance and avoids hard-to-debug behaviour. +.SUFFIXES: +MAKEFLAGS += -Rr +ifeq ("$(origin CC)", "default") + CC := cc +endif + vardir := /var/paraslash mandir := $(datarootdir)/man/man1 STRIP := $(CROSS_COMPILE)strip @@ -10,7 +19,6 @@ uname_s := $(shell uname -s 2>/dev/null || echo "UNKNOWN_OS") uname_rs := $(shell uname -rs) cc_version := $(shell $(CC) --version | head -n 1) GIT_VERSION := $(shell ./GIT-VERSION-GEN git-version.h) -build_date := $(shell date) ifeq ("$(origin O)", "command line") build_dir := $(O) @@ -165,7 +173,8 @@ $(man_dir)/para_server.1: man_util_command_lists := $(server_command_lists) $(man_dir)/para_audiod.1: man_util_command_lists := $(audiod_command_lists) $(man_dir)/para_play.1: man_util_command_lists := $(play_command_lists) -$(man_dir)/para_%.1: $(ggo_dir)/%.ggo man_util.bash | $(man_dir) $(help2man_dir) +$(man_dir)/para_%.1: $(ggo_dir)/%.ggo man_util.bash \ + git-version.h | $(man_dir) $(help2man_dir) @[ -z "$(Q)" ] || echo 'MAN $<' $(Q) \ COMMAND_LISTS="$(man_util_command_lists)" \