Makefile (702B)
1 FENNEL?=$(fennel) 2 PREFIX?=/usr/local 3 4 PROGRAM_NAME=just 5 MAIN=$(PROGRAM_NAME).fnl 6 SOURCES=$(MAIN) listeners.fnl viewplex.fnl webview.fnl 7 8 $(PROGRAM_NAME): $(SOURCES) Makefile 9 (echo -e "#!/usr/bin/env lua\n" ; \ 10 : we reset package.path so that --require-as-include cannot find ; \ 11 : and inline third-party modules ; \ 12 lua -e 'package.path="./?.lua"' $(FENNEL) --require-as-include --compile $(MAIN) ) > $@ 13 chmod +x $@ 14 15 install: 16 mkdir -p $(PREFIX)/bin $(PREFIX)/lib/$(PROGRAM_NAME) 17 cp $(PROGRAM_NAME) $(PREFIX)/bin 18 # cp interface.xml styles.css $(PREFIX)/lib/$(PROGRAM_NAME) 19 20 test: 21 for i in *-test.fnl ; do lua $(fennel) $$i; done 22 23 easylist.txt: 24 curl https://easylist.to/easylist/easylist.txt -O