From 672aedc1a6495da6123ad70b4cc77dbbedc100a3 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 5 Jun 2016 05:30:38 -0400 Subject: allow more easily running a development version alongside a real one this just changes the window class (so that i can make the development version use floating windows while not screwing up the layout for my real terminals) and the runesd socket location (so that i can test runesd at all while i'm already running a real runesd). --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9d67557..be8ab87 100644 --- a/Makefile +++ b/Makefile @@ -46,6 +46,9 @@ release: ## Build optimized binaries $(MAKE) OPT=-O2 strip $(OUT) $(DOUT) $(COUT) +debug: CFLAGS += -DRUNES_PROGRAM_NAME='"runes-debug"' +debug: $(OUT) $(DOUT) $(COUT) ## Like 'all', but with a different window class and socket path + run: $(OUT) ## Build and run the standalone runes terminal @./$(OUT) @@ -79,7 +82,7 @@ clean: ## Remove build files @rmdir -p $(BUILD) > /dev/null 2>&1 || true help: ## Display this help - @grep -HE '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":|##"}; {printf "\033[36m%-20s\033[0m %s\n", $$2, $$4}' + @grep -HE '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":|##"}; {printf "\033[36m%-12s\033[0m %s\n", $$2, $$4}' -include $(OBJ:$(BUILD)%.o=$(BUILD).%.d) -include $(DOBJ:$(BUILD)%.o=$(BUILD).%.d) -- cgit v1.2.3-54-g00ecf