UnitJS/Makefile

15 lines
220 B
Makefile

BUILD_DIR=dist
TARGET=$(BUILD_DIR)/unit.js
SRC=$(wildcard *.js)
TEMPLATE=unit.js.tpl
all: $(TARGET)
$(BUILD_DIR):
mkdir -p $@
$(TARGET): $(SRC) $(BUILD_DIR)
./$(TEMPLATE) $(SRC) > $@
mrproper:
rm -rf $(BUILD_DIR)