~technomancy/fennel

fee16232808a7ac8f45abfbb9cdb5ef7f37081a1 — Phil Hagelberg 2 months ago 1002295
Add makefile target for minifennel.lua
2 files changed, 7 insertions(+), 0 deletions(-)

M .gitignore
M Makefile
M .gitignore => .gitignore +1 -0
@@ 1,5 1,6 @@
/fennel
/fennel.lua
/minifennel.lua
/downloads
/scratch.fnl


M Makefile => Makefile +6 -0
@@ 45,6 45,12 @@ fennel: src/launcher.fnl $(SRC)
fennel.lua: $(SRC)
	$(LAUNCHER) --no-metadata --require-as-include --compile $< > $@

# A lighter version of the compiler that excludes some features; experimental.
minifennel.lua: $(SRC) fennel
	./fennel --no-metadata --require-as-include --add-fennel-path src/?.fnl \
		--skip-include fennel.repl,fennel.view,fennel.friend \
		--compile $< > $@

LUA_DIR ?= $(PWD)/lua-5.3.5
STATIC_LUA_LIB ?= $(LUA_DIR)/src/liblua-linux-x86_64.a
LUA_INCLUDE_DIR ?= $(LUA_DIR)/src