diff options
-rw-r--r-- | tools/root.make | 8 |
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 | |||
29 | 29 | ||
30 | .PHONY: all clean tags zip tools manual bin build info langs | 30 | .PHONY: all clean tags zip tools manual bin build info langs |
31 | 31 | ||
32 | ifeq (,$(filter clean veryclean tags voice voicetools manual manual-pdf manual-html manual-zhtml manual-txt manual-ztxt manual-zip help fontzip ,$(MAKECMDGOALS))) | ||
33 | # none of the above | ||
32 | DEPFILE = $(BUILDDIR)/make.dep | 34 | DEPFILE = $(BUILDDIR)/make.dep |
33 | 35 | ||
36 | endif | ||
37 | |||
34 | all: $(DEPFILE) build | 38 | all: $(DEPFILE) build |
35 | 39 | ||
36 | # Subdir makefiles. their primary purpose is to populate SRC & OTHER_SRC | 40 | # Subdir makefiles. their primary purpose is to populate SRC & OTHER_SRC |
@@ -73,13 +77,11 @@ $(RBINFO): $(BUILDDIR)/$(BINARY) | |||
73 | $(SILENT)echo Creating $(@F) | 77 | $(SILENT)echo Creating $(@F) |
74 | $(SILENT)$(TOOLSDIR)/mkinfo.pl $@ | 78 | $(SILENT)$(TOOLSDIR)/mkinfo.pl $@ |
75 | 79 | ||
76 | ifneq (clean,$(findstring clean,$(MAKECMDGOALS))) # don't build deps before cleaning | ||
77 | $(DEPFILE) dep: | 80 | $(DEPFILE) dep: |
78 | $(call PRINTS,Generating dependencies) | 81 | $(call PRINTS,Generating dependencies) |
79 | @echo foo > /dev/null # there must be a "real" command in the rule | 82 | @echo foo > /dev/null # there must be a "real" command in the rule |
80 | $(call mkdepfile,$(DEPFILE),$(SRC) $(OTHER_SRC)) | 83 | $(call mkdepfile,$(DEPFILE),$(SRC) $(OTHER_SRC)) |
81 | $(call bmpdepfile,$(DEPFILE),$(BMP) $(PBMP)) | 84 | $(call bmpdepfile,$(DEPFILE),$(BMP) $(PBMP)) |
82 | endif | ||
83 | 85 | ||
84 | bin: $(DEPFILE) $(TOOLS) $(BUILDDIR)/$(BINARY) | 86 | bin: $(DEPFILE) $(TOOLS) $(BUILDDIR)/$(BINARY) |
85 | rocks: $(DEPFILE) $(TOOLS) $(ROCKS) | 87 | rocks: $(DEPFILE) $(TOOLS) $(ROCKS) |
@@ -99,7 +101,7 @@ clean: | |||
99 | rockbox-manual*.zip sysfont.h rockbox-info.txt voicefontids \ | 101 | rockbox-manual*.zip sysfont.h rockbox-info.txt voicefontids \ |
100 | *.wav *.mp3 *.voice max_language_size.h $(CLEANOBJS) \ | 102 | *.wav *.mp3 *.voice max_language_size.h $(CLEANOBJS) \ |
101 | $(LINKRAM) $(LINKROM) rockbox.elf rockbox.map rockbox.bin \ | 103 | $(LINKRAM) $(LINKROM) rockbox.elf rockbox.map rockbox.bin \ |
102 | $(DEPFILE) rombox.elf rombox.map rombox.bin rombox.ucl \ | 104 | make.dep rombox.elf rombox.map rombox.bin rombox.ucl \ |
103 | $(BINARY) $(FLASHFILE) uisimulator bootloader flash $(BOOTLINK) | 105 | $(BINARY) $(FLASHFILE) uisimulator bootloader flash $(BOOTLINK) |
104 | 106 | ||
105 | #### linking the binaries: #### | 107 | #### linking the binaries: #### |