UnitJS/Makefile

16 lines
231 B
Makefile
Raw Normal View History

BUILD_DIR=dist
TARGET=$(BUILD_DIR)/unit.js
2020-03-23 21:43:34 +01: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)