]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Disable ccache for all relevant build targets
authorMichael Brown <mcb30@ipxe.org>
Wed, 26 Mar 2014 21:27:55 +0000 (21:27 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 26 Mar 2014 21:28:27 +0000 (21:28 +0000)
The build process currently attempts to disable ccache for files using
the .incbin directive, but the rule fails to apply to anything beyond
the simple object target.  Fix by applying to all relevant build
targets (including debug objects, assembly listings, and so on).

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/Makefile.housekeeping

index 939d5bcc9ace014fa6fb438fb52b85a77b2fac2c..d1dac6f703703222954f3d2feede661467b4532b 100644 (file)
@@ -674,9 +674,8 @@ CFLAGS_clientcert += $(if $(PRIVKEY),-DPRIVATE_KEY="\"$(PRIVKEY_INC)\"")
 # Unfortunately ccache does not detect this dependency and caches
 # builds even when the binary file has changed.
 #
-$(BIN)/embedded.o : override CC := env CCACHE_DISABLE=1 $(CC)
-
-$(BIN)/clientcert.o : override CC := env CCACHE_DISABLE=1 $(CC)
+$(BIN)/embedded.% : override CC := env CCACHE_DISABLE=1 $(CC)
+$(BIN)/clientcert.% : override CC := env CCACHE_DISABLE=1 $(CC)
 
 # Version number
 #
@@ -686,7 +685,7 @@ CFLAGS_version += -DVERSION_MAJOR=$(VERSION_MAJOR) \
                  -DVERSION="\"$(VERSION)\""
 # Make sure the version number gets updated on every git checkout
 ifneq ($(GITVERSION),)
-$(BIN)/version.o : ../.git/index
+$(BIN)/version.% : ../.git/index
 endif
 
 # We automatically generate rules for any file mentioned in AUTO_SRCS