changes haxe build

This commit is contained in:
Djeeberjr 2022-02-20 01:29:28 +01:00
parent 0812b43bb8
commit 21505261f8
2 changed files with 5 additions and 2 deletions

View File

@ -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 $@

View File

@ -5,5 +5,5 @@
--dce full
# --lua build/Haxe.lua
--lua build/Haxe.lua
-D lua-vanilla