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 BIN_NAME := Haxe.lua
MINIFYD_NAME := Haxe.min.lua MINIFYD_NAME := Haxe.min.lua
BUILD_DIR := build BUILD_DIR := build
HAXE_FLAGS = -D webconsole
BIN_PATH := $(BUILD_DIR)/$(BIN_NAME) BIN_PATH := $(BUILD_DIR)/$(BIN_NAME)
MIN_PATH := $(BUILD_DIR)/$(MINIFYD_NAME) MIN_PATH := $(BUILD_DIR)/$(MINIFYD_NAME)
all: clean $(MIN_PATH) all: clean $(MIN_PATH)
build: $(MIN_PATH)
$(BIN_PATH): $(shell find src -name '*.hx') $(BIN_PATH): $(shell find src -name '*.hx')
haxe build.hxml --lua $@ haxe build.hxml $(HAXE_FLAGS)
$(MIN_PATH): $(BIN_PATH) $(MIN_PATH): $(BIN_PATH)
node minify.js $@ node minify.js $@

View File

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