~technomancy/fnlfmt

ref: 6d15cff93cabaa7a0b80b65f919c1aab1ceee2db fnlfmt/Makefile -rw-r--r-- 333 bytes
6d15cff9Phil Hagelberg Avoid trailing whitespace on binding vectors too. 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
SRC = fnlfmt.fnl cli.fnl test.fnl

fnlfmt: cli.fnl fnlfmt.fnl
	echo "#!/usr/bin/env lua" > $@
	fennel --require-as-include --compile $< >> $@
	chmod +x fnlfmt

test: fnlfmt ; fennel test.fnl
count: ; cloc fnlfmt.fnl
roundtrip: fnlfmt ; @for file in $(SRC) ; do ./fnlfmt $$file | diff -u $$file - ; done

.PHONY: test count roundtrip