heptagon makefile helper for lectures

This commit is contained in:
Mylloon 2024-10-22 13:06:37 +02:00
parent 739ffc6180
commit 96a60c8ac4
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

23
heptagon.mk Normal file
View file

@ -0,0 +1,23 @@
CAT = bat -pp
ENTRY = test
all: main
main: clear pastefile eval print
clear:
clear
pastefile:
xclip -o > $(ENTRY).ept
eval:
# todo: don't crash on ^Z
hept -ts p $(ENTRY).ept
print:
heptc -i -target c $(ENTRY).ept
$(CAT) $(ENTRY)_c/$(ENTRY).c