1
mirror of https://gitlab.com/jessieh/qrprinter.git synced 2024-11-14 11:51:45 +00:00
qrprinter/Makefile

26 lines
510 B
Makefile
Raw Normal View History

2021-10-07 05:55:46 +00:00
# qrprinter Makefile
# Produces .lua files from the .fnl source files
SRC_DIR = src
BUILD_DIR = build
2021-10-07 19:58:40 +00:00
FENNEL = ./bin/fennel-0.10.0-x86_64
2021-10-07 05:55:46 +00:00
fnl_files := $(shell find $(SRC_DIR)/ -type f -name '*.fnl')
lua_files := $(patsubst $(SRC_DIR)/%.fnl, $(BUILD_DIR)/%.lua, $(fnl_files))
.PHONY: install clean
all: $(lua_files)
$(BUILD_DIR)/%.lua: $(SRC_DIR)/%.fnl
mkdir -p "$(@D)"
$(FENNEL) --compile $< > $@
2021-10-07 19:58:40 +00:00
install:
@echo "Leaving installation up to luarocks..."
2021-10-07 05:55:46 +00:00
clean:
rm -rf $(BUILD_DIR)
2021-10-07 20:19:25 +00:00
rm -f *.src.rock