From: Rudolf Polzer Date: Fri, 13 Jan 2012 23:25:21 +0000 (+0100) Subject: fix dependency check causing recompile of all .c files X-Git-Tag: xonotic-v0.6.0~30 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=57d64f977f16df6eb3dae902488267960289104a;p=xonotic%2Fnetradiant.git fix dependency check causing recompile of all .c files --- diff --git a/Makefile b/Makefile index 5a9f2923..5c187b13 100644 --- a/Makefile +++ b/Makefile @@ -450,7 +450,7 @@ endif %.o: %.cpp $(if $(findstring $(DEPEND_ON_MAKEFILE),yes),$(wildcard Makefile*),) | dependencies-check $(CXX) $< $(CFLAGS) $(CXXFLAGS) $(CFLAGS_COMMON) $(CXXFLAGS_COMMON) $(CPPFLAGS_EXTRA) $(CPPFLAGS_COMMON) $(CPPFLAGS) $(TARGET_ARCH) -c -o $@ -%.o: %.c dependencies-check $(if $(findstring $(DEPEND_ON_MAKEFILE),yes),$(wildcard Makefile*),) | dependencies-check +%.o: %.c $(if $(findstring $(DEPEND_ON_MAKEFILE),yes),$(wildcard Makefile*),) | dependencies-check $(CC) $< $(CFLAGS) $(CFLAGS_COMMON) $(CPPFLAGS_EXTRA) $(CPPFLAGS_COMMON) $(CPPFLAGS) $(TARGET_ARCH) -c -o $@