Summary Files Commits Branches @commit @diff @stats
path: root / Makefile
diff options
context:
space:
mode:
Commit768ad801aaac4012b94131f00040e3b9dc629773 (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-07-23 13:12:49 +0200
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-07-23 13:13:17 +0200
Files6d79615f7a57f070b1a0c42e55235d55f1717652 /Makefile
goodwolf-768ad801aaac4012b94131f00040e3b9dc629773.tar
goodwolf-768ad801aaac4012b94131f00040e3b9dc629773.tar.gz
goodwolf-768ad801aaac4012b94131f00040e3b9dc629773.zip
Parentc5c20e8f0d45a13503826062a0db508ad5eebf2d (diff)
Add the git hash in the version when possible
1 files changed, 1 insertions, 1 deletions
-rw-r--r--Makefile2
diff --git a/Makefile b/Makefile
index 89cbf0c..bf27740 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ TRANS = fr.mo
CC = cc
CFLAGS = -g -Wall -Wextra -Wconversion -Wsign-conversion
-CDEPS = `pkg-config --cflags $(DEPS)` -DDATADIR=\"$(DATADIR)\" -DPACKAGE=\"$(PACKAGE)\" -D_DEFAULT_SOURCE
+CDEPS = `pkg-config --cflags $(DEPS)` -DDATADIR=\"$(DATADIR)\" -DPACKAGE=\"$(PACKAGE)\" -D_DEFAULT_SOURCE -DVERSION="$(shell ./version.sh)"
LIBS = `pkg-config --libs $(DEPS)`
all: $(EXE) $(TRANS)