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