15 lines
231 B
Makefile
15 lines
231 B
Makefile
BUILD_DIR=dist
|
|
TARGET=$(BUILD_DIR)/unit.js
|
|
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)
|