summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2008-11-26 23:21:30 +0000
committerBjörn Stenberg <bjorn@haxx.se>2008-11-26 23:21:30 +0000
commit34332cf2ecece9211aba3c59e564e5d15feb4a32 (patch)
tree741bc84ed16d0fd4760f383a75b7fa74adfa909f /tools
parent3eece18b9537ad254e271f1ee7e5d453c2a4ac48 (diff)
downloadrockbox-34332cf2ecece9211aba3c59e564e5d15feb4a32.tar.gz
rockbox-34332cf2ecece9211aba3c59e564e5d15feb4a32.tar.bz2
rockbox-34332cf2ecece9211aba3c59e564e5d15feb4a32.zip
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
Diffstat (limited to 'tools')
-rw-r--r--tools/root.make8
1 files 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: ####