From 1aa3b43d8cea4fb2eb0f994ad3184f25d8154c26 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Thu, 3 Mar 2022 15:47:11 +0100 Subject: [PATCH] added debug target --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1b52090..8c5a738 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ BUNDLE_NAME = bundle.lua HAXE_NAME = haxe.lua MINIFYD_NAME = bundle.min.lua BUILD_DIR = build -HAXE_FLAGS = +HAXE_FLAGS = POLYFILLED_NAME = bundle.polyfill.lua POLYFILL_SRC = src/polyfill.lua @@ -14,6 +14,9 @@ all: clean build build: $(MIN_PATH) +debug: HAXE_FLAGS += -D webconsole --debug +debug: build + $(HAXE_PATH): $(shell find src -name '*.hx') haxe build.hxml $(HAXE_FLAGS) @@ -30,7 +33,7 @@ clean: rm -rf $(BUILD_DIR) watch: - find src -name "*.hx" | entr make build + find src -name "*.hx" | entr make debug emulator: craftos --mount-ro /=build