diff options
Diffstat (limited to 'tools/root.make')
-rw-r--r-- | tools/root.make | 31 |
1 files changed, 11 insertions, 20 deletions
diff --git a/tools/root.make b/tools/root.make index 9f4890e1f4..803a5d53b3 100644 --- a/tools/root.make +++ b/tools/root.make | |||
@@ -22,19 +22,6 @@ TOOLS = $(TOOLSDIR)/rdf2binary $(TOOLSDIR)/convbdf \ | |||
22 | $(TOOLSDIR)/codepages $(TOOLSDIR)/scramble $(TOOLSDIR)/bmp2rb \ | 22 | $(TOOLSDIR)/codepages $(TOOLSDIR)/scramble $(TOOLSDIR)/bmp2rb \ |
23 | $(TOOLSDIR)/uclpack $(TOOLSDIR)/mktccboot $(TOOLSDIR)/mkboot | 23 | $(TOOLSDIR)/uclpack $(TOOLSDIR)/mktccboot $(TOOLSDIR)/mkboot |
24 | 24 | ||
25 | |||
26 | ifeq (,$(PREFIX)) | ||
27 | ifdef SIMVER | ||
28 | PREFIX = simdisk | ||
29 | INSTALL = --install="$(PREFIX)" | ||
30 | else | ||
31 | # Don't set INSTALL and error out later | ||
32 | INSTALL = | ||
33 | endif | ||
34 | else | ||
35 | INSTALL = --install="$(PREFIX)" | ||
36 | endif | ||
37 | |||
38 | RBINFO = $(BUILDDIR)/rockbox-info.txt | 25 | RBINFO = $(BUILDDIR)/rockbox-info.txt |
39 | 26 | ||
40 | # list suffixes to be understood by $* | 27 | # list suffixes to be understood by $* |
@@ -82,7 +69,7 @@ endif # bootloader | |||
82 | OBJ := $(SRC:.c=.o) | 69 | OBJ := $(SRC:.c=.o) |
83 | OBJ := $(OBJ:.S=.o) | 70 | OBJ := $(OBJ:.S=.o) |
84 | OBJ += $(BMP:.bmp=.o) | 71 | OBJ += $(BMP:.bmp=.o) |
85 | OBJ := $(subst $(ROOTDIR),$(BUILDDIR),$(OBJ)) | 72 | OBJ := $(subst $(ROOTDIR),$(BUILDDIR),$(OBJ)) |
86 | 73 | ||
87 | build: $(TOOLS) $(BUILDDIR)/$(BINARY) $(CODECS) $(ROCKS) $(ARCHOSROM) $(RBINFO) | 74 | build: $(TOOLS) $(BUILDDIR)/$(BINARY) $(CODECS) $(ROCKS) $(ARCHOSROM) $(RBINFO) |
88 | 75 | ||
@@ -267,15 +254,19 @@ voice: voicetools features | |||
267 | 254 | ||
268 | endif | 255 | endif |
269 | 256 | ||
257 | ifdef SIMVER | ||
258 | |||
270 | install: | 259 | install: |
271 | @echo "Installing your build in your '$(PREFIX)' dir" | 260 | @echo "Installing your build in your 'simdisk' dir" |
272 | $(SILENT)for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done; \ | 261 | $(SILENT)for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done; \ |
273 | $(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) -m "$(MODELNAME)" -i "$(TARGET_ID)" $(INSTALL) -z "zip -r0" -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 0 $(TARGET) $(BINARY) | 262 | $(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) -m \"$(MODELNAME)\" -i \"$(TARGET_ID)\" -s -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 0 $(TARGET) $(BINARY) |
274 | 263 | ||
275 | fullinstall: | 264 | fullinstall: |
276 | @echo "Installing a full setup in your '$(PREFIX)' dir" | 265 | @echo "Installing a full setup in your 'simdisk' dir" |
277 | $(SILENT)for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done; \ | 266 | $(SILENT)for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done; \ |
278 | $(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) -m "$(MODELNAME)" -i "$(TARGET_ID)" $(INSTALL) -z "zip -r0" -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 2 $(TARGET) $(BINARY) | 267 | $(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) -m \"$(MODELNAME)\" -i \"$(TARGET_ID)\" -s -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 2 $(TARGET) $(BINARY) |
268 | |||
269 | endif | ||
279 | 270 | ||
280 | help: | 271 | help: |
281 | @echo "A few helpful make targets" | 272 | @echo "A few helpful make targets" |
@@ -301,8 +292,8 @@ help: | |||
301 | @echo "tools - builds the tools only" | 292 | @echo "tools - builds the tools only" |
302 | @echo "voice - creates the voice clips (voice builds only)" | 293 | @echo "voice - creates the voice clips (voice builds only)" |
303 | @echo "voicetools - builds the voice tools only" | 294 | @echo "voicetools - builds the voice tools only" |
304 | @echo "install - installs your build (at PREFIX, defaults to simdisk/ for simulators (no fonts))" | 295 | @echo "install - installs your build (for simulator builds only, no fonts)" |
305 | @echo "fullinstall - installs your build (like install, but with fonts)" | 296 | @echo "fullinstall - installs your build (for simulator builds only, with fonts)" |
306 | @echo "reconf - rerun configure with the same selection" | 297 | @echo "reconf - rerun configure with the same selection" |
307 | 298 | ||
308 | ### general compile rules: | 299 | ### general compile rules: |