16 lines
276 B
Makefile
16 lines
276 B
Makefile
FENNEL?=fennel
|
|
PREFIX?=/usr/local
|
|
|
|
MODULES=main.fnl
|
|
|
|
%.lua : %.fnl
|
|
$(FENNEL) --compile $< > $@
|
|
|
|
saturn: $(patsubst %.fnl,%.lua,$(MODULES)) Makefile
|
|
(echo -e "#!/usr/bin/env lua\n" ; cat main.lua ) > $@
|
|
chmod +x $@
|
|
|
|
install:
|
|
mkdir -p $(PREFIX)/bin
|
|
cp saturn $(PREFIX)/bin
|