UnitJS/Makefile

16 lines
231 B
Makefile
Raw Permalink Normal View History

BUILD_DIR=dist
TARGET=$(BUILD_DIR)/unit.js
2020-05-17 22:19:21 +02:00
SRC=$(wildcard src/UnitJS/*.js)
TEMPLATE=unit.js.tpl
all: $(TARGET)
$(BUILD_DIR):
mkdir -p $@
$(TARGET): $(SRC) $(BUILD_DIR)
./$(TEMPLATE) $(SRC) > $@
mrproper:
rm -rf $(BUILD_DIR)