mirror of
https://github.com/StewBC/cc65-Chess.git
synced 2024-06-02 20:41:30 +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
|
@ -3,12 +3,19 @@ DSK = cc65-Chess.dsk
|
||||||
# For this one, see https://applecommander.github.io/
|
# For this one, see https://applecommander.github.io/
|
||||||
AC ?= ac.jar
|
AC ?= ac.jar
|
||||||
|
|
||||||
|
# Unix or Windows
|
||||||
|
ifeq ($(shell echo),)
|
||||||
|
CP = cp $1
|
||||||
|
else
|
||||||
|
CP = copy $(subst /,\,$1)
|
||||||
|
endif
|
||||||
|
|
||||||
REMOVES += $(DSK)
|
REMOVES += $(DSK)
|
||||||
|
|
||||||
.PHONY: dsk
|
.PHONY: dsk
|
||||||
dsk: $(DSK)
|
dsk: $(DSK)
|
||||||
|
|
||||||
$(DSK): cc65-Chess.apple2
|
$(DSK): cc65-Chess.apple2
|
||||||
copy apple2\template.dsk $@
|
$(call CP, apple2/template.dsk $@)
|
||||||
java -jar $(AC) -p $@ chess.system sys < $(shell cl65 --print-target-path)\apple2\util\loader.system
|
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
|
java -jar $(AC) -as $@ chess bin < cc65-Chess.apple2
|
||||||
|
|
Loading…
Reference in New Issue
Block a user