summaryrefslogtreecommitdiff
path: root/tools/root.make
diff options
context:
space:
mode:
Diffstat (limited to 'tools/root.make')
-rw-r--r--tools/root.make29
1 files changed, 19 insertions, 10 deletions
diff --git a/tools/root.make b/tools/root.make
index 803a5d53b3..3b50ae3825 100644
--- a/tools/root.make
+++ b/tools/root.make
@@ -22,6 +22,19 @@ 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
26ifeq (,$(PREFIX))
27ifdef SIMVER
28PREFIX = simdisk
29INSTALL = --install="$(PREFIX)"
30else
31# Don't set INSTALL and error out later
32INSTALL =
33endif
34else
35INSTALL = --install="$(PREFIX)"
36endif
37
25RBINFO = $(BUILDDIR)/rockbox-info.txt 38RBINFO = $(BUILDDIR)/rockbox-info.txt
26 39
27# list suffixes to be understood by $* 40# list suffixes to be understood by $*
@@ -254,19 +267,15 @@ voice: voicetools features
254 267
255endif 268endif
256 269
257ifdef SIMVER
258
259install: 270install:
260 @echo "Installing your build in your 'simdisk' dir" 271 @echo "Installing your build in your '$(PREFIX)' dir"
261 $(SILENT)for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done; \ 272 $(SILENT)for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done; \
262 $(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) -m \"$(MODELNAME)\" -i \"$(TARGET_ID)\" -s -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 0 $(TARGET) $(BINARY) 273 $(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) -m "$(MODELNAME)" -i "$(TARGET_ID)" $(INSTALL) -z "zip -r0" -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 0 $(TARGET) $(BINARY)
263 274
264fullinstall: 275fullinstall:
265 @echo "Installing a full setup in your 'simdisk' dir" 276 @echo "Installing a full setup in your '$(PREFIX)' dir"
266 $(SILENT)for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done; \ 277 $(SILENT)for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done; \
267 $(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) -m \"$(MODELNAME)\" -i \"$(TARGET_ID)\" -s -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 2 $(TARGET) $(BINARY) 278 $(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) -m \"$(MODELNAME)\" -i \"$(TARGET_ID)\" $(INSTALL) -z "zip -r0"-r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 2 $(TARGET) $(BINARY)
268
269endif
270 279
271help: 280help:
272 @echo "A few helpful make targets" 281 @echo "A few helpful make targets"
@@ -292,8 +301,8 @@ help:
292 @echo "tools - builds the tools only" 301 @echo "tools - builds the tools only"
293 @echo "voice - creates the voice clips (voice builds only)" 302 @echo "voice - creates the voice clips (voice builds only)"
294 @echo "voicetools - builds the voice tools only" 303 @echo "voicetools - builds the voice tools only"
295 @echo "install - installs your build (for simulator builds only, no fonts)" 304 @echo "install - installs your build (at PREFIX, defaults to simdisk/ for simulators (no fonts))"
296 @echo "fullinstall - installs your build (for simulator builds only, with fonts)" 305 @echo "fullinstall - installs your build (like install, but with fonts)"
297 @echo "reconf - rerun configure with the same selection" 306 @echo "reconf - rerun configure with the same selection"
298 307
299### general compile rules: 308### general compile rules: