blob: 2a462d74784784fc415923456c113efe48065647 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
FNLSOURCES = core.fnl
LUASOURCES = $(FNLSOURCES:.fnl=.lua)
all: cljlib.lua
.PHONY: all clean help test
cljlib.lua: test $(LUASOURCES)
mv core.lua cljlib.lua
%.lua: %.fnl
fennel --compile $^ > $@
clean:
rm -f *.lua
test:
@fennel core_test.fnl
@fennel macros_test.fnl
help:
@echo "make -- run tests and create lua library"
@echo "make test -- run tests"
@echo "make clean -- remove lua files"
|