diff --git a/Makefile b/Makefile index 80f0e5d..7cabfd1 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,17 @@ BIN_NAME := Haxe.lua MINIFYD_NAME := Haxe.min.lua BUILD_DIR := build +HAXE_FLAGS = -D webconsole BIN_PATH := $(BUILD_DIR)/$(BIN_NAME) MIN_PATH := $(BUILD_DIR)/$(MINIFYD_NAME) all: clean $(MIN_PATH) +build: $(MIN_PATH) + $(BIN_PATH): $(shell find src -name '*.hx') - haxe build.hxml --lua $@ + haxe build.hxml $(HAXE_FLAGS) $(MIN_PATH): $(BIN_PATH) node minify.js $@ diff --git a/build.hxml b/build.hxml index 01bb01b..31ac015 100644 --- a/build.hxml +++ b/build.hxml @@ -5,5 +5,5 @@ --dce full -# --lua build/Haxe.lua +--lua build/Haxe.lua -D lua-vanilla