summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2017-01-15 20:02:32 +0000
committerSimon Tatham <anakin@pobox.com>2017-01-15 20:03:22 +0000
commitdad1bbc6f8fbb588a7a880096d6d3610a29c064f (patch)
tree03c7e13bf863c61e2a4ddeadd0a1738df8891a3f
parent0739189afa3b7b8ebe660c3455d4fccfaaa91260 (diff)
Permit overriding VER on the make command line.
An alternative way for distribution maintainers to bake in a version number, if they don't like overwriting version.h like my own tarball build script does.
-rw-r--r--version.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/version.h b/version.h
index 4ca6736..13e569d 100644
--- a/version.h
+++ b/version.h
@@ -8,4 +8,6 @@
* development runs of 'make'.
*/
+#ifndef VER /* so that you can make CPPFLAGS+='-DVER="\"version\""' */
#define VER "unidentified build"
+#endif