makefiles/heptagon.mk
2024-10-24 14:02:18 +02:00

28 lines
394 B
Makefile

PASTE = xclip -o
CAT = bat -pp
FILE ?= test
ENTRY ?= test
LIMIT ?= 5
all: test
# Possible usage: make testn ENTRY=node0
test: pastefile eval
# Usage: make testn LIMIT=10
testn: pastefile evaln
pastefile:
$(PASTE) > $(FILE).ept
eval:
hept -ts $(ENTRY) $(FILE).ept
evaln:
hept -ts $(ENTRY) -m $(LIMIT) $(FILE).ept
print:
heptc -i -target c $(FILE).ept
$(CAT) $(FILE)_c/$(FILE).c