aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-06-05 05:30:38 -0400
committerJesse Luehrs <doy@tozt.net>2016-06-05 05:30:38 -0400
commit672aedc1a6495da6123ad70b4cc77dbbedc100a3 (patch)
treeb6c45366717b410c2dc2d07264369b413dda91cb /Makefile
parentb8196f0244d2a0b7adebe8d35182a071493eddf5 (diff)
downloadrunes-672aedc1a6495da6123ad70b4cc77dbbedc100a3.tar.gz
runes-672aedc1a6495da6123ad70b4cc77dbbedc100a3.zip
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).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
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)