mirror of
https://github.com/StewBC/cc65-Chess.git
synced 2025-02-20 17:28:57 +00:00
make apple2 disk builder Unix compatible
Make the Makefile-dsk.mk work in Windows and Unix (Linux/MacOS)
This commit is contained in:
parent
df70999561
commit
e8b0f56b1d
@ -1,14 +1,21 @@
|
||||
DSK = cc65-Chess.dsk
|
||||
|
||||
# For this one, see https://applecommander.github.io/
|
||||
AC ?= ac.jar
|
||||
|
||||
REMOVES += $(DSK)
|
||||
|
||||
.PHONY: dsk
|
||||
dsk: $(DSK)
|
||||
|
||||
$(DSK): cc65-Chess.apple2
|
||||
copy apple2\template.dsk $@
|
||||
java -jar $(AC) -p $@ chess.system sys < $(shell cl65 --print-target-path)\apple2\util\loader.system
|
||||
java -jar $(AC) -as $@ chess bin < cc65-Chess.apple2
|
||||
DSK = cc65-Chess.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): cc65-Chess.apple2
|
||||
$(call CP, apple2/template.dsk $@)
|
||||
java -jar $(AC) -p $@ chess.system sys < $(shell cl65 --print-target-path)/apple2/util/loader.system
|
||||
java -jar $(AC) -as $@ chess bin < cc65-Chess.apple2
|
||||
|
Loading…
x
Reference in New Issue
Block a user