aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorCameron Cawley2018-07-22 23:06:11 +0100
committerEugene Sandulenko2018-07-23 09:36:46 +0200
commitc52addd0012cbe8d2963c2429ef27de645616ee3 (patch)
treea234a75b52b0dbd1a1d8cd0c3dc5689bc4fe65c3 /backends/platform
parentd2acf0cef1f3e42b2065b716fdb18a0c385fe3df (diff)
downloadscummvm-rg350-c52addd0012cbe8d2963c2429ef27de645616ee3.tar.gz
scummvm-rg350-c52addd0012cbe8d2963c2429ef27de645616ee3.tar.bz2
scummvm-rg350-c52addd0012cbe8d2963c2429ef27de645616ee3.zip
RISCOS: Use a variable for the application name
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/sdl/riscos/riscos.mk40
1 files changed, 21 insertions, 19 deletions
diff --git a/backends/platform/sdl/riscos/riscos.mk b/backends/platform/sdl/riscos/riscos.mk
index 297c409870..0a1ed8117d 100644
--- a/backends/platform/sdl/riscos/riscos.mk
+++ b/backends/platform/sdl/riscos/riscos.mk
@@ -4,31 +4,33 @@ else
ENCODING=ISO-8859-1//TRANSLIT
endif
+APP_NAME=!ScummVM
+
# Special target to create an RISC OS snapshot installation
-riscosdist: scummvm$(EXEEXT)
- mkdir -p !ScummVM
- elf2aif scummvm$(EXEEXT) !ScummVM/scummvm,ff8
- cp ${srcdir}/dists/riscos/!Boot,feb !ScummVM/!Boot,feb
- cp ${srcdir}/dists/riscos/!Run,feb !ScummVM/!Run,feb
- cp ${srcdir}/dists/riscos/!Sprites,ff9 !ScummVM/!Sprites,ff9
- cp ${srcdir}/dists/riscos/!Sprites11,ff9 !ScummVM/!Sprites11,ff9
- sed -i -e "s/|WimpSlot/WimpSlot -min `du -k !ScummVM/scummvm,ff8 | cut -f1`K/g" !ScummVM/!Run,feb
- mkdir -p !ScummVM/data
- cp $(DIST_FILES_THEMES) !ScummVM/data/
+riscosdist: all
+ mkdir -p $(APP_NAME)
+ elf2aif $(EXECUTABLE) $(APP_NAME)/scummvm,ff8
+ cp ${srcdir}/dists/riscos/!Boot,feb $(APP_NAME)/!Boot,feb
+ cp ${srcdir}/dists/riscos/!Run,feb $(APP_NAME)/!Run,feb
+ cp ${srcdir}/dists/riscos/!Sprites,ff9 $(APP_NAME)/!Sprites,ff9
+ cp ${srcdir}/dists/riscos/!Sprites11,ff9 $(APP_NAME)/!Sprites11,ff9
+ sed -i -e "s/|WimpSlot/WimpSlot -min `du -k $(APP_NAME)/scummvm,ff8 | cut -f1`K/g" $(APP_NAME)/!Run,feb
+ mkdir -p $(APP_NAME)/data
+ cp $(DIST_FILES_THEMES) $(APP_NAME)/data/
ifdef DIST_FILES_NETWORKING
- cp $(DIST_FILES_NETWORKING) !ScummVM/data/
+ cp $(DIST_FILES_NETWORKING) $(APP_NAME)/data/
endif
ifdef DIST_FILES_ENGINEDATA
- cp $(DIST_FILES_ENGINEDATA) !ScummVM/data/
+ cp $(DIST_FILES_ENGINEDATA) $(APP_NAME)/data/
endif
ifdef DYNAMIC_MODULES
- mkdir -p !ScummVM/plugins
- cp $(PLUGINS) !ScummVM/plugins/
+ mkdir -p $(APP_NAME)/plugins
+ cp $(PLUGINS) $(APP_NAME)/plugins/
endif
- mkdir -p !ScummVM/docs
- cp ${srcdir}/dists/riscos/!Help,feb !ScummVM/!Help,feb
+ mkdir -p $(APP_NAME)/docs
+ cp ${srcdir}/dists/riscos/!Help,feb $(APP_NAME)/!Help,feb
ifdef TOKENIZE
- $(TOKENIZE) dists/riscos/FindHelp,fd1 -out !ScummVM/FindHelp,ffb
+ $(TOKENIZE) dists/riscos/FindHelp,fd1 -out $(APP_NAME)/FindHelp,ffb
endif
- @$(foreach file, $(DIST_FILES_DOCS) $(srcdir)/doc/QuickStart, echo ' ' ICONV ' ' !ScummVM/docs/$(notdir $(file)),fff;iconv --to-code=$(ENCODING) $(file) > !ScummVM/docs/$(notdir $(file)),fff;)
- @$(foreach lang, $(DIST_FILES_DOCS_languages), mkdir -p !ScummVM/docs/$(lang); $(foreach file, $(DIST_FILES_DOCS_$(lang)), echo ' ' ICONV ' ' !ScummVM/docs/$(lang)/$(notdir $(file)),fff;iconv --to-code=$(ENCODING) $(file) > !ScummVM/docs/$(lang)/$(notdir $(file)),fff;))
+ @$(foreach file, $(DIST_FILES_DOCS) $(srcdir)/doc/QuickStart, echo ' ' ICONV ' ' $(APP_NAME)/docs/$(notdir $(file)),fff;iconv --to-code=$(ENCODING) $(file) > $(APP_NAME)/docs/$(notdir $(file)),fff;)
+ @$(foreach lang, $(DIST_FILES_DOCS_languages), mkdir -p $(APP_NAME)/docs/$(lang); $(foreach file, $(DIST_FILES_DOCS_$(lang)), echo ' ' ICONV ' ' $(APP_NAME)/docs/$(lang)/$(notdir $(file)),fff;iconv --to-code=$(ENCODING) $(file) > $(APP_NAME)/docs/$(lang)/$(notdir $(file)),fff;))