heptagon makefile helper for lectures
This commit is contained in:
parent
739ffc6180
commit
96a60c8ac4
1 changed files with 23 additions and 0 deletions
23
heptagon.mk
Normal file
23
heptagon.mk
Normal 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
|
Loading…
Reference in a new issue