summaryrefslogtreecommitdiffstats
path: root/txr.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-06-11 06:45:30 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-06-11 06:45:30 -0700
commitb2eebed31eff3243c75726818ca0c7f2868e3182 (patch)
treea12e0e4d3809e1d53d902d96c0003e4c310e5df6 /txr.c
parent79f55cbf6c6e7412473e119a02aa637e985721f5 (diff)
downloadtxr-b2eebed31eff3243c75726818ca0c7f2868e3182.tar.gz
txr-b2eebed31eff3243c75726818ca0c7f2868e3182.tar.bz2
txr-b2eebed31eff3243c75726818ca0c7f2868e3182.zip
* Makefile (txr.o): Pass TXR_VER preprocessor symbol on gcc command
line. (PREINSTALL): New variable holding a step for the install recipe. (pax tar zip): New targets. * configure (txr_ver): Version now added to config.make, passed through to txr.c. (gen_config_make): bindir, datadir and mandir are established using gmake's regular macro assignment (=) rather than expanding assignment (:=). This allows us to override the prefix variable after configure time. * lib.h (wli_noex): New macro. (wli): Retarget to wli_noex, so that argument is subject to macro replacement. * txr.c (version): Use TXR_VER defined on compiler command line, rather than hard-coded string literal.
Diffstat (limited to 'txr.c')
-rw-r--r--txr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/txr.c b/txr.c
index d46a2d67..80a902b7 100644
--- a/txr.c
+++ b/txr.c
@@ -54,7 +54,7 @@
#include "regex.h"
#include "txr.h"
-const wchli_t *version = wli("89");
+const wchli_t *version = wli(TXR_VER);
const wchar_t *progname = L"txr";
static const char *progname_u8;
static val progpath = nil;