~technomancy/fnlfmt

ref: 87c5ad517ecd75669b0b9ce82da72096a59700c8 fnlfmt/Makefile -rw-r--r-- 344 bytes
87c5ad51Phil Hagelberg Support adding line breaks in, not just indentation. 11 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 indent.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