summaryrefslogtreecommitdiffstats
path: root/configure
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 /configure
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 'configure')
-rwxr-xr-xconfigure8
1 files changed, 5 insertions, 3 deletions
diff --git a/configure b/configure
index 86e17c26..111bf260 100755
--- a/configure
+++ b/configure
@@ -564,6 +564,8 @@ gen_config_make()
# derived from the txr_shell variable.
SHELL := $txr_shell
+txr_ver := $txr_ver
+
# absolute path to source code directory
top_srcdir := $top_srcdir
@@ -581,13 +583,13 @@ DESTDIR := $install_prefix
bindir_rel := $bindir
# executable directory
-bindir := \$(prefix)/\$(bindir_rel)
+bindir = \$(prefix)/\$(bindir_rel)
# read-only data directory
-datadir := \$(prefix)/$datadir
+datadir = \$(prefix)/$datadir
# man page directory
-mandir := \$(prefix)/$mandir
+mandir = \$(prefix)/$mandir
# cross compiler toolchain root directory
cross := $cross