mirror of
https://github.com/a2-4am/passport.git
synced 2024-11-09 14:05:40 +00:00
33 lines
733 B
Makefile
33 lines
733 B
Makefile
#
|
|
# Passport 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 2017-01-07
|
|
#
|
|
|
|
# third-party tools required to build
|
|
# https://sourceforge.net/projects/acme-crossass/
|
|
ACME=`which acme`
|
|
# https://sourceforge.net/projects/applecommander/
|
|
AC=bin/AppleCommander.jar
|
|
|
|
BUILDDISK=build/passport.po
|
|
|
|
asm:
|
|
mkdir -p build
|
|
cd src && $(ACME) passport.a && cd -
|
|
cp res/work.po $(BUILDDISK)
|
|
java -jar $(AC) -p $(BUILDDISK) "PASSPORT.SYSTEM" sys 0x2000 < build/PASSPORT.SYSTEM
|
|
|
|
clean:
|
|
rm -rf build/
|
|
|
|
mount:
|
|
osascript bin/V2Make.scpt "`pwd`" $(BUILDDISK)
|
|
|
|
all: clean asm mount
|