diff options
author | Cameron Cawley | 2019-04-17 22:06:17 +0100 |
---|---|---|
committer | David Turner | 2019-04-18 03:55:22 +0100 |
commit | 50ed922cb7466c25d874260e9c341cfbdb108341 (patch) | |
tree | 2bbbda13bdfe6f6ecf8d745741f2dcbdcafc5106 /backends/platform | |
parent | bcd44e7d95a3d8ceb957b5d611aa35e165a590d8 (diff) | |
download | scummvm-rg350-50ed922cb7466c25d874260e9c341cfbdb108341.tar.gz scummvm-rg350-50ed922cb7466c25d874260e9c341cfbdb108341.tar.bz2 scummvm-rg350-50ed922cb7466c25d874260e9c341cfbdb108341.zip |
RISCOS: Support creating a StrongHelp manual
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/sdl/riscos/riscos.mk | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/backends/platform/sdl/riscos/riscos.mk b/backends/platform/sdl/riscos/riscos.mk index 44b49d513d..4fea4d4a3f 100644 --- a/backends/platform/sdl/riscos/riscos.mk +++ b/backends/platform/sdl/riscos/riscos.mk @@ -40,4 +40,35 @@ clean: riscosclean riscosclean: $(RM_REC) $(APP_NAME) +ifdef BINDHELP +ifdef PANDOC + +riscosdist: $(APP_NAME)/docs/ScummVM,3d6 # $(APP_NAME)/docs/de/ScummVM,3d6 $(APP_NAME)/docs/cz/ScummVM,3d6 $(APP_NAME)/se/ScummVM,3d6 + +README=${srcdir}/README.md +NEWS=${srcdir}/NEWS.md +$(APP_NAME)/docs/de/ScummVM,3d6: README=${srcdir}/doc/de/LIESMICH +$(APP_NAME)/docs/de/ScummVM,3d6: NEWS=${srcdir}/doc/de/NEUES +$(APP_NAME)/docs/cz/ScummVM,3d6: README=${srcdir}/doc/cz/PrectiMe +$(APP_NAME)/docs/se/ScummVM,3d6: README=${srcdir}/doc/se/LasMig + +define manual-markdown + echo Converting markdown file '$1' + echo "ScummVM - $(notdir $(basename $1)) " > $(APP_NAME)/tmp/$2,fff + $(PANDOC) -f gfm -t ${srcdir}/dists/riscos/manual/stronghelp.lua $1 | iconv --to-code=$(ENCODING) >> $(APP_NAME)/tmp/$2,fff +endef + +%,3d6: $(README) $(NEWS) ${srcdir}/dists/riscos/manual/stronghelp.lua ${srcdir}/devtools/credits.pl $(DIST_FILES_DOCS) + $(MKDIR) $(APP_NAME)/tmp + @$(call manual-markdown,$(README),!Root) + @$(call manual-markdown,$(NEWS),NEWS) + @$(call manual-markdown,${srcdir}/CONTRIBUTING.md,CONTRIBUTING) + ${srcdir}/devtools/credits.pl --stronghelp > $(APP_NAME)/tmp/AUTHORS,fff + $(MKDIR) $(APP_NAME)/docs + $(BINDHELP) $(APP_NAME)/tmp $@ -r -f + $(RM_REC) $(APP_NAME)/tmp + +endif +endif + .PHONY: riscosdist riscosclean |