Browse Source

[build] Disable ccache for all relevant build targets

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>
tags/v1.20.1
Michael Brown 10 years ago
parent
commit
8540300951
1 changed files with 3 additions and 4 deletions
  1. 3
    4
      src/Makefile.housekeeping

+ 3
- 4
src/Makefile.housekeeping View File

674
 # Unfortunately ccache does not detect this dependency and caches
674
 # Unfortunately ccache does not detect this dependency and caches
675
 # builds even when the binary file has changed.
675
 # builds even when the binary file has changed.
676
 #
676
 #
677
-$(BIN)/embedded.o : override CC := env CCACHE_DISABLE=1 $(CC)
678
-
679
-$(BIN)/clientcert.o : override CC := env CCACHE_DISABLE=1 $(CC)
677
+$(BIN)/embedded.% : override CC := env CCACHE_DISABLE=1 $(CC)
678
+$(BIN)/clientcert.% : override CC := env CCACHE_DISABLE=1 $(CC)
680
 
679
 
681
 # Version number
680
 # Version number
682
 #
681
 #
686
 		  -DVERSION="\"$(VERSION)\""
685
 		  -DVERSION="\"$(VERSION)\""
687
 # Make sure the version number gets updated on every git checkout
686
 # Make sure the version number gets updated on every git checkout
688
 ifneq ($(GITVERSION),)
687
 ifneq ($(GITVERSION),)
689
-$(BIN)/version.o : ../.git/index
688
+$(BIN)/version.% : ../.git/index
690
 endif
689
 endif
691
 
690
 
692
 # We automatically generate rules for any file mentioned in AUTO_SRCS
691
 # We automatically generate rules for any file mentioned in AUTO_SRCS

Loading…
Cancel
Save