~technomancy/fnlfmt

ref: 0582de344095112c52fd10d1ea5ee5b7896b363e fnlfmt/Makefile -rw-r--r-- 322 bytes
0582de34Jesse Wertheim make cli standalone 1 year, 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
SRC = fnlfmt.fnl cli.fnl test.fnl

fnlfmt: cli.fnl
	echo "#!/usr/bin/env lua" > $@
	fennel --compile --require-as-include $< >> $@
	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