aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3e7a8af..d045622 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
-.PHONY: all test
+.PHONY: all test install
py = /usr/bin/env python3
digital_path = $(HOME)/.local/share/Digital/digital.jar
+PREFIX=/usr/local
start-digital:
java -jar $(digital_path) &
@@ -46,5 +47,11 @@ test-digital-alu:
test:
pytest --ignore resources
+install:
+ mkdir -p "$(PREFIX)/share/atk16/asm"
+ cp atk16_asm/*.py "$(PREFIX)/share/atk16/asm/"
+ printf "#!/bin/sh\ncd \"$(PREFIX)/share/atk16\"\n/usr/bin/env python -m asm.assembler \$$@\n" > "$(PREFIX)/bin/atk16c"
+ chmod +x "$(PREFIX)/bin/atk16c"
+
run-single-test:
java -cp $(digital_path) CLI test -verbose -circ $(circ) -tests $(tests)