[git commit] buildsys: avoid superfluous rebuilds with make-4.1

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Sat Mar 5 23:20:05 UTC 2016


commit: https://git.uclibc.org/uClibc++/commit/?id=29ac958678f7effb4b0bc1e143729653b0eb1825
branch: https://git.uclibc.org/uClibc++/commit/?id=refs/heads/master

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 bin/Makefile.in | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/bin/Makefile.in b/bin/Makefile.in
index 6fc1129..8e1b50c 100644
--- a/bin/Makefile.in
+++ b/bin/Makefile.in
@@ -10,9 +10,8 @@ install-bin: $(WRAPPER) | $(DESTDIR)$(UCLIBCXX_RUNTIME_BINDIR)
 # Hardcoding these in the wrapper is arguably bad design but handy
 cmd_bin_env_check = CXX="$(CXX)" GEN_CFLAGS="$(GEN_CFLAGS)" GEN_CXXFLAGS="$(GEN_CXXFLAGS)" EH_CXXFLAGS="$(EH_CXXFLAGS)" UCLIBCXX_RUNTIME_INCLUDEDIR="$(UCLIBCXX_RUNTIME_INCLUDEDIR)" UCLIBCXX_RUNTIME_LIBDIR="$(UCLIBCXX_RUNTIME_LIBDIR)"
 
-.PHONY: $(BIN_DIR)env_check
 manual.depends.dep += $(BIN_DIR)env_check
-$(BIN_DIR)env_check:
+$(BIN_DIR)env_check: FORCE
 	@echo 'cmd_$(call variablify,$(call dirify,$(WRAPPER))) := $(cmd_bin_env_check)' > $@.new
 	@echo '' >> $@.new
 	@if cmp -s $@ $@.new ; then \
@@ -60,5 +59,5 @@ endef
 
 $(WRAPPER) $(BIN_DIR)env_check: $(BIN_DIR)Makefile.in
 $(WRAPPER): $(BIN_DIR)env_check
-	$(if $(strip $(call compare_flags,$<) $?),$(do_wrapper))
+	$(if $(strip $(call compare_flags,$<) $(any-prereq)),$(do_wrapper))
 


More information about the uClibc-cvs mailing list