2024-10-24 14:02:18 +02:00
|
|
|
PASTE = xclip -o
|
2024-10-22 13:14:40 +02:00
|
|
|
CAT = bat -pp
|
2024-10-22 13:06:37 +02:00
|
|
|
|
2024-10-22 13:22:58 +02:00
|
|
|
FILE ?= test
|
2024-10-22 13:21:44 +02:00
|
|
|
ENTRY ?= test
|
|
|
|
LIMIT ?= 5
|
2024-10-22 13:06:37 +02:00
|
|
|
|
|
|
|
|
2024-10-22 13:21:44 +02:00
|
|
|
all: test
|
2024-10-22 13:06:37 +02:00
|
|
|
|
2024-10-22 13:21:44 +02:00
|
|
|
# Possible usage: make testn ENTRY=node0
|
|
|
|
test: pastefile eval
|
2024-10-22 13:06:37 +02:00
|
|
|
|
2024-10-22 13:21:44 +02:00
|
|
|
# Usage: make testn LIMIT=10
|
|
|
|
testn: pastefile evaln
|
2024-10-22 13:06:37 +02:00
|
|
|
|
|
|
|
pastefile:
|
2024-10-22 13:22:58 +02:00
|
|
|
$(PASTE) > $(FILE).ept
|
2024-10-22 13:06:37 +02:00
|
|
|
|
|
|
|
eval:
|
2024-10-22 13:22:58 +02:00
|
|
|
hept -ts $(ENTRY) $(FILE).ept
|
2024-10-22 13:18:08 +02:00
|
|
|
|
|
|
|
evaln:
|
2024-10-22 13:23:44 +02:00
|
|
|
hept -ts $(ENTRY) -m $(LIMIT) $(FILE).ept
|
2024-10-22 13:06:37 +02:00
|
|
|
|
|
|
|
print:
|
2024-10-22 13:22:58 +02:00
|
|
|
heptc -i -target c $(FILE).ept
|
|
|
|
$(CAT) $(FILE)_c/$(FILE).c
|