changeset 21441:46a9c7afe419

ensure that substituted config vars are not changed on make command line * Makefile.am (Makefile): Depend on check-subst-vars. * check-subst-vars.in.sh: Delete generated awk script on normal exit.
author John W. Eaton <jwe@octave.org>
date Fri, 11 Mar 2016 15:41:39 -0500
parents 062c65569ad7
children 78edcabed953
files Makefile.am build-aux/check-subst-vars.in.sh
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.am	Fri Mar 11 15:39:52 2016 -0500
+++ b/Makefile.am	Fri Mar 11 15:41:39 2016 -0500
@@ -227,6 +227,8 @@
 	@echo "   make install    - to install (PREFIX=$(prefix))"
 	@echo ""
 
+Makefile: check-subst-vars
+
 run-octave: run-octave.in build-aux/subst-script-vals.sh
 	$(AM_V_GEN)$(call simple-filter-rule,build-aux/subst-script-vals.sh) && \
 	chmod a+rx $@
--- a/build-aux/check-subst-vars.in.sh	Fri Mar 11 15:39:52 2016 -0500
+++ b/build-aux/check-subst-vars.in.sh	Fri Mar 11 15:41:39 2016 -0500
@@ -66,3 +66,5 @@
 ## Execute it.
 
 $AWK -f $awk_script $config_vars 1>&2
+
+rm -f $awk_script