summaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2025-02-18 14:29:09 -0600
committerSquibid <me@zacharyscheiman.com>2025-02-18 14:32:40 -0600
commit6025b2d8322caea124582fb9292780382466d660 (patch)
treec660f6639e279717539715384b5e30d87d54165e /config.mk
parent6c099e364812c18f3c60894118cfee4315eb6d3d (diff)
downloadXD-6025b2d8322caea124582fb9292780382466d660.tar.gz
XD-6025b2d8322caea124582fb9292780382466d660.tar.bz2
XD-6025b2d8322caea124582fb9292780382466d660.zip
Add -e flag to explain what the previous smiley face means. This
requires us to also know what the previous return signal is, so if XD is given a return code, it passes it through when finishing execution.
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/config.mk b/config.mk
index af2d55e..d1c7728 100644
--- a/config.mk
+++ b/config.mk
@@ -16,6 +16,10 @@ ERR =
# uncomment to enable errors
# ERR = -DERR
+EXPLAIN =
+# comment to disable explinations
+EXPLAIN = -DEXPLAIN
+
# add compilation details to VERSION variable
ifneq ($(GIT),)
VERSION := $(VERSION)"\\nlibgit2 "`$(PKG_CONFIG) --modversion $(GITLIB)`
@@ -25,5 +29,10 @@ ifeq ($(ERR),)
else
VERSION := $(VERSION)"\\nerrors enabled"
endif
+ifeq ($(EXPLAIN),)
+ VERSION := $(VERSION)"\\nexplinations disabled"
+else
+ VERSION := $(VERSION)"\\nexplinations enabled"
+endif
CC = cc