two templates, allow args
This commit is contained in:
parent
d41219c8ed
commit
88c32c8071
1 changed files with 7 additions and 6 deletions
13
heptagon.mk
13
heptagon.mk
|
@ -2,16 +2,17 @@ PASTE = xclip -o
|
|||
CAT = bat -pp
|
||||
|
||||
|
||||
ENTRY = test
|
||||
LIMIT = 5
|
||||
ENTRY ?= test
|
||||
LIMIT ?= 5
|
||||
|
||||
|
||||
all: main
|
||||
all: test
|
||||
|
||||
main: clear pastefile eval
|
||||
# Possible usage: make testn ENTRY=node0
|
||||
test: pastefile eval
|
||||
|
||||
clear:
|
||||
clear
|
||||
# Usage: make testn LIMIT=10
|
||||
testn: pastefile evaln
|
||||
|
||||
pastefile:
|
||||
$(PASTE) > $(ENTRY).ept
|
||||
|
|
Loading…
Reference in a new issue