XML examples out of source support
Examples still don't work though!
This commit is contained in:
parent
7192b1c735
commit
7f5a32195a
1 changed files with 5 additions and 5 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
# Examples/xml/Makefile
|
# Examples/xml/Makefile
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
|
top_builddir = @top_builddir@
|
||||||
|
|
||||||
cleanup = tail +2 \
|
cleanup = tail +2 \
|
||||||
| sed -e 's/ident="ID[0-9A-F]*"//g' \
|
| sed -e 's/ident="ID[0-9A-F]*"//g' \
|
||||||
|
|
@ -19,14 +21,12 @@ all-dot-i-files = \
|
||||||
example_xml.i \
|
example_xml.i \
|
||||||
gnarly.i
|
gnarly.i
|
||||||
|
|
||||||
chk-swiglib = $(top_srcdir)/Lib
|
|
||||||
|
|
||||||
check:
|
check:
|
||||||
for f in $(all-dot-i-files) ; do \
|
for f in $(all-dot-i-files) ; do \
|
||||||
base=`basename $$f .i` ; \
|
base=`basename $$f .i` ; \
|
||||||
xml=$$base.xml ; \
|
xml=$$base.xml ; \
|
||||||
SWIG_LIB=$(chk-swiglib) $(top_srcdir)/swig -xml $$xml $$f ; \
|
SWIG_LIB=$(top_srcdir)/Lib $(top_builddir)/swig -xml $$xml ${srcdir}/$$f ; \
|
||||||
cat $$xml | $(cleanup) | diff -c $$base.expected-xml - ; \
|
cat $$xml | $(cleanup) | diff -c ${srcdir}/$$base.expected-xml - ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
@ -38,7 +38,7 @@ distclean: clean
|
||||||
# from here on, non-developers beware!
|
# from here on, non-developers beware!
|
||||||
|
|
||||||
%.expected-xml : %.i
|
%.expected-xml : %.i
|
||||||
SWIG_LIB=$(top_srcdir)/Lib $(top_srcdir)/swig -xml tmp-file $^
|
SWIG_LIB=$(top_srcdir)/Lib $(top_builddir)/swig -xml tmp-file $^
|
||||||
cat tmp-file | $(cleanup) > $@
|
cat tmp-file | $(cleanup) > $@
|
||||||
rm -f tmp-file
|
rm -f tmp-file
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue