added debug target

This commit is contained in:
Djeeberjr 2022-03-03 15:47:11 +01:00
parent daff654867
commit 1aa3b43d8c

View File

@ -2,7 +2,7 @@ BUNDLE_NAME = bundle.lua
HAXE_NAME = haxe.lua HAXE_NAME = haxe.lua
MINIFYD_NAME = bundle.min.lua MINIFYD_NAME = bundle.min.lua
BUILD_DIR = build BUILD_DIR = build
HAXE_FLAGS = HAXE_FLAGS =
POLYFILLED_NAME = bundle.polyfill.lua POLYFILLED_NAME = bundle.polyfill.lua
POLYFILL_SRC = src/polyfill.lua POLYFILL_SRC = src/polyfill.lua
@ -14,6 +14,9 @@ all: clean build
build: $(MIN_PATH) build: $(MIN_PATH)
debug: HAXE_FLAGS += -D webconsole --debug
debug: build
$(HAXE_PATH): $(shell find src -name '*.hx') $(HAXE_PATH): $(shell find src -name '*.hx')
haxe build.hxml $(HAXE_FLAGS) haxe build.hxml $(HAXE_FLAGS)
@ -30,7 +33,7 @@ clean:
rm -rf $(BUILD_DIR) rm -rf $(BUILD_DIR)
watch: watch:
find src -name "*.hx" | entr make build find src -name "*.hx" | entr make debug
emulator: emulator:
craftos --mount-ro /=build craftos --mount-ro /=build