From b3100175a844ac0d011f65344edcd02690d25764 Mon Sep 17 00:00:00 2001 From: Willem Date: Fri, 1 May 2020 04:07:52 +0200 Subject: [PATCH] Includes src and usage text --- Makefile | 21 ++++++++++++++++++++- README.md | 2 +- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 488c678..d6e6a84 100644 --- a/Makefile +++ b/Makefile @@ -47,6 +47,25 @@ bin/dist/$(BUILD_NAME)/omsxctl.com: bin/dist/$(BUILD_NAME) | bin/omsxctl/omsxctl bin/dist/$(BUILD_NAME)/omsxctl.tcl: bin/dist/$(BUILD_NAME) cp src/omsxctl.tcl bin/dist/$(BUILD_NAME)/omsxctl.tcl +bin/dist/$(BUILD_NAME)/omsxctl.asm: bin/dist/$(BUILD_NAME) + cp src/omsxctl.asm bin/dist/$(BUILD_NAME)/omsxctl.asm + +bin/dist/$(BUILD_NAME)/usage.txt: + echo "# Usage\r" > $@ + echo "\r" >> $@ + echo "Pass the tcl script to openMSX on the command line:\r" >> $@ + echo " openmsx -script /omsxctl.tcl\r" >> $@ + echo "\r" >> $@ + echo "And then in MSX-DOS execute something like:\r" >> $@ + echo " omsxctl set throttle off\r" >> $@ + echo " ...\r" >> $@ + echo " omsxctl exit\r" >> $@ + echo "\r" >> $@ + BUILD_HELP += \\n\\t* bin/dist/$(BUILD_NAME).tar.gz -bin/dist/$(BUILD_NAME).tar.gz: bin/dist/$(BUILD_NAME)/omsxctl.com bin/dist/$(BUILD_NAME)/omsxctl.tcl +bin/dist/$(BUILD_NAME).tar.gz: \ +bin/dist/$(BUILD_NAME)/omsxctl.com \ +bin/dist/$(BUILD_NAME)/omsxctl.tcl \ +bin/dist/$(BUILD_NAME)/omsxctl.asm \ +bin/dist/$(BUILD_NAME)/usage.txt cd bin/dist && tar -czvf $(BUILD_NAME).tar.gz $(BUILD_NAME) diff --git a/README.md b/README.md index 2c3e8b2..bb48281 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Original idea by 'immetoo' implemented with help from 'm9710797' ## Usage -Pass the script on the openMSX command line: +Pass the tcl script to openMSX on the command line: openmsx -script /omsxctl.tcl And then in MSX-DOS execute something like: