2022-02-19 20:48:34 +00:00
|
|
|
BIN_NAME := Haxe.lua
|
|
|
|
MINIFYD_NAME := Haxe.min.lua
|
|
|
|
BUILD_DIR := build
|
2022-02-20 00:29:28 +00:00
|
|
|
HAXE_FLAGS = -D webconsole
|
2022-02-19 20:48:34 +00:00
|
|
|
|
|
|
|
BIN_PATH := $(BUILD_DIR)/$(BIN_NAME)
|
|
|
|
MIN_PATH := $(BUILD_DIR)/$(MINIFYD_NAME)
|
|
|
|
|
|
|
|
all: clean $(MIN_PATH)
|
|
|
|
|
2022-02-20 00:29:28 +00:00
|
|
|
build: $(MIN_PATH)
|
|
|
|
|
2022-02-19 20:48:34 +00:00
|
|
|
$(BIN_PATH): $(shell find src -name '*.hx')
|
2022-02-20 00:29:28 +00:00
|
|
|
haxe build.hxml $(HAXE_FLAGS)
|
2022-02-19 20:48:34 +00:00
|
|
|
|
|
|
|
$(MIN_PATH): $(BIN_PATH)
|
|
|
|
node minify.js $@
|
|
|
|
|
|
|
|
deps: package.json build.hxml
|
|
|
|
haxelib install all --always && yarn install
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(BUILD_DIR)
|