From 34332cf2ecece9211aba3c59e564e5d15feb4a32 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Wed, 26 Nov 2008 23:21:30 +0000 Subject: Don't generate dependencies for make targets that don't need them. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19242 a1c6a512-1295-4272-9138-f99709370657 --- tools/root.make | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/root.make b/tools/root.make index d58ef4de65..1bd6862cfb 100644 --- a/tools/root.make +++ b/tools/root.make @@ -29,8 +29,12 @@ RBINFO = $(BUILDDIR)/rockbox-info.txt .PHONY: all clean tags zip tools manual bin build info langs +ifeq (,$(filter clean veryclean tags voice voicetools manual manual-pdf manual-html manual-zhtml manual-txt manual-ztxt manual-zip help fontzip ,$(MAKECMDGOALS))) +# none of the above DEPFILE = $(BUILDDIR)/make.dep +endif + all: $(DEPFILE) build # Subdir makefiles. their primary purpose is to populate SRC & OTHER_SRC @@ -73,13 +77,11 @@ $(RBINFO): $(BUILDDIR)/$(BINARY) $(SILENT)echo Creating $(@F) $(SILENT)$(TOOLSDIR)/mkinfo.pl $@ -ifneq (clean,$(findstring clean,$(MAKECMDGOALS))) # don't build deps before cleaning $(DEPFILE) dep: $(call PRINTS,Generating dependencies) @echo foo > /dev/null # there must be a "real" command in the rule $(call mkdepfile,$(DEPFILE),$(SRC) $(OTHER_SRC)) $(call bmpdepfile,$(DEPFILE),$(BMP) $(PBMP)) -endif bin: $(DEPFILE) $(TOOLS) $(BUILDDIR)/$(BINARY) rocks: $(DEPFILE) $(TOOLS) $(ROCKS) @@ -99,7 +101,7 @@ clean: rockbox-manual*.zip sysfont.h rockbox-info.txt voicefontids \ *.wav *.mp3 *.voice max_language_size.h $(CLEANOBJS) \ $(LINKRAM) $(LINKROM) rockbox.elf rockbox.map rockbox.bin \ - $(DEPFILE) rombox.elf rombox.map rombox.bin rombox.ucl \ + make.dep rombox.elf rombox.map rombox.bin rombox.ucl \ $(BINARY) $(FLASHFILE) uisimulator bootloader flash $(BOOTLINK) #### linking the binaries: #### -- cgit v1.2.3