Update Makefile-dsk.mk

Add Unix compatability
This commit is contained in:
StewBC 2020-01-20 22:33:11 -08:00
parent 867e81ebf3
commit 606b2e1f42
1 changed files with 8 additions and 1 deletions

View File

@ -3,12 +3,19 @@ DSK = Penetrator.dsk
# For this one, see https://applecommander.github.io/
AC ?= ac.jar
# Unix or Windows
ifeq ($(shell echo),)
CP = cp $1
else
CP = copy $(subst /,\,$1)
endif
REMOVES += $(DSK)
.PHONY: dsk
dsk: $(DSK)
$(DSK): penetrator-apple2.apple2.loader penetrator-apple2.apple2
copy apple2\template.dsk $@
$(call CP, apple2/template.dsk $@)
java -jar $(AC) -p $@ penetrat.system sys < penetrator-apple2.apple2.loader
java -jar $(AC) -as $@ penetrat bin < penetrator-apple2.apple2