2018-08-21 13:58:28 +00:00
|
|
|
#
|
|
|
|
# 4cade Makefile
|
|
|
|
# assembles source code, optionally builds a disk image and mounts it
|
|
|
|
#
|
|
|
|
# original by Quinn Dunki on 2014-08-15
|
|
|
|
# One Girl, One Laptop Productions
|
|
|
|
# http://www.quinndunki.com/blondihacks
|
|
|
|
#
|
|
|
|
# adapted by 4am on 2018-08-19
|
|
|
|
#
|
|
|
|
|
|
|
|
DISK=4cade.2mg
|
2018-08-23 20:02:48 +00:00
|
|
|
VOLUME=A.4AM.PACK
|
2018-08-21 13:58:28 +00:00
|
|
|
|
|
|
|
# third-party tools required to build
|
|
|
|
# https://sourceforge.net/projects/acme-crossass/
|
|
|
|
ACME=acme
|
|
|
|
# https://www.brutaldeluxe.fr/products/crossdevtools/cadius/
|
|
|
|
# https://github.com/mach-kernel/cadius
|
|
|
|
CADIUS=cadius
|
|
|
|
|
|
|
|
asm: md
|
2018-08-23 20:02:48 +00:00
|
|
|
$(ACME) -r build/4cade.lst src/4cade.a
|
2018-08-21 13:58:28 +00:00
|
|
|
|
|
|
|
dsk: md asm
|
2018-08-23 20:02:48 +00:00
|
|
|
$(CADIUS) CREATEVOLUME build/"$(DISK)" "${VOLUME}" 32766KB >/dev/null
|
|
|
|
cp res/_FileInformation.txt build/
|
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/${VOLUME}/" "res/PRODOS" >/dev/null
|
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/${VOLUME}/" "build/LAUNCHER.SYSTEM" >/dev/null
|
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/${VOLUME}/" "res/COVER" >/dev/null
|
|
|
|
$(CADIUS) ADDFILE build/"$(DISK)" "/${VOLUME}/" "res/COVER.A2FC" >/dev/null
|
|
|
|
$(CADIUS) CREATEFOLDER build/"$(DISK)" "/${VOLUME}/X/" >/dev/null
|
|
|
|
bin/do2po.py res/dsk/ build/po/
|
|
|
|
rsync -a res/dsk/*.po build/po/
|
|
|
|
bin/extract.py build/po/ | sh
|
|
|
|
rm -f build/X/**/.DS_Store
|
|
|
|
rm -f build/X/**/PRODOS
|
2018-08-25 14:51:56 +00:00
|
|
|
rm -f build/X/**/LOADER.SYSTEM
|
2018-08-23 20:02:48 +00:00
|
|
|
$(CADIUS) ADDFOLDER build/"$(DISK)" "/${VOLUME}/X" "build/X"
|
2018-08-21 13:58:28 +00:00
|
|
|
|
|
|
|
artwork: dsk
|
2018-08-23 20:02:48 +00:00
|
|
|
# $(CADIUS) ADDFOLDER build/"$(DISK)" "/${VOLUME}/ARTWORK" "res/artwork"
|
|
|
|
# $(CADIUS) ADDFILE build/"$(DISK)" "/${VOLUME}/ARTWORK/" "res/DHRSLIDE.SYSTEM"
|
|
|
|
# $(CADIUS) ADDFOLDER build/"$(DISK)" "/${VOLUME}/ARTWORKGS" "res/artworkgs"
|
2018-08-21 13:58:28 +00:00
|
|
|
|
|
|
|
mount: dsk
|
|
|
|
osascript bin/V2Make.scpt "`pwd`" bin/4cade.vii build/"$(DISK)"
|
|
|
|
|
|
|
|
md:
|
2018-08-23 20:02:48 +00:00
|
|
|
mkdir -p build/po
|
|
|
|
mkdir -p build/X
|
2018-08-21 13:58:28 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build/
|
|
|
|
|
|
|
|
all: clean asm dsk artwork mount
|