summaryrefslogtreecommitdiff
path: root/Examples/xml/Makefile.in
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2015-08-20 23:05:43 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2015-08-21 22:48:34 +0100
commite00a8026a65889716ba85f26b641d79b71b44dbe (patch)
tree4a0b82bcaffe693f75350b650df0c2773f97c3de /Examples/xml/Makefile.in
parent7f5a32195a0a897bf60f8bfa706b6719a7ac06c3 (diff)
downloadswig-e00a8026a65889716ba85f26b641d79b71b44dbe.tar.gz
More remove SWIG_LIB variable
Diffstat (limited to 'Examples/xml/Makefile.in')
-rw-r--r--Examples/xml/Makefile.in9
1 files changed, 7 insertions, 2 deletions
diff --git a/Examples/xml/Makefile.in b/Examples/xml/Makefile.in
index 2b6fecb7b..44894b8ea 100644
--- a/Examples/xml/Makefile.in
+++ b/Examples/xml/Makefile.in
@@ -4,6 +4,11 @@ srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
+SWIGEXE = $(top_builddir)/swig
+SWIG_LIB_DIR = $(top_srcdir)/Lib
+SWIG_LIB_SET = @SWIG_LIB_SET@
+SWIGINVOKE = $(SWIG_LIB_SET) $(SWIGTOOL) $(SWIGEXE)
+
cleanup = tail +2 \
| sed -e 's/ident="ID[0-9A-F]*"//g' \
-e 's,name="/[^"]*/\([^/]*\.swg\)",name="\1",g'
@@ -25,7 +30,7 @@ check:
for f in $(all-dot-i-files) ; do \
base=`basename $$f .i` ; \
xml=$$base.xml ; \
- SWIG_LIB=$(top_srcdir)/Lib $(top_builddir)/swig -xml $$xml ${srcdir}/$$f ; \
+ $(SWIGINVOKE) -xml $$xml ${srcdir}/$$f ; \
cat $$xml | $(cleanup) | diff -c ${srcdir}/$$base.expected-xml - ; \
done
@@ -38,7 +43,7 @@ distclean: clean
# from here on, non-developers beware!
%.expected-xml : %.i
- SWIG_LIB=$(top_srcdir)/Lib $(top_builddir)/swig -xml tmp-file $^
+ $(SWIGINVOKE) -xml tmp-file $^
cat tmp-file | $(cleanup) > $@
rm -f tmp-file