PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/xml/Makefile.in

#
Autoconf | 54 lines | 38 code | 13 blank | 3 comment | 2 complexity | f0331dc9d51ee2665d3ef00b076a6751 MD5 | raw file
 1# Examples/xml/Makefile
 2
 3top_srcdir	= @top_srcdir@
 4
 5cleanup		= tail +2 \
 6		  | sed -e 's/ident="ID[0-9A-F]*"//g' \
 7			-e 's,name="/[^"]*/\([^/]*\.swg\)",name="\1",g'
 8
 9all-dot-i-files =				\
10	error.i					\
11	example.i				\
12	example_apply.i				\
13	example_const.i				\
14	example_gif.i				\
15	example_inl.i				\
16	example_p5.i				\
17	example_ro.i				\
18	example_title_add.i			\
19	example_xml.i				\
20	gnarly.i
21
22all: check
23
24chk-swiglib = $(top_srcdir)/Lib
25
26check:
27	for f in $(all-dot-i-files) ; do				\
28	  base=`basename $$f .i` ;					\
29	  xml=$$base.xml ;						\
30	  SWIG_LIB=$(chk-swiglib) $(top_srcdir)/swig -xml $$xml $$f ;	\
31	  cat $$xml | $(cleanup) | diff -c $$base.expected-xml - ;	\
32	done
33
34clean:
35	rm -f *.xml
36
37distclean: clean
38	rm -f Makefile
39
40# from here on, non-developers beware!
41
42%.expected-xml : %.i
43	SWIG_LIB=$(top_srcdir)/Lib $(top_srcdir)/swig -xml tmp-file $^
44	cat tmp-file | $(cleanup) > $@
45	rm -f tmp-file
46
47all-expected-xml:
48	for f in $(all-dot-i-files) ; do \
49	  make `basename $$f .i`.expected-xml ; done
50
51all-expected-xml-clean:
52	rm -f *.expected-xml
53
54# Examples/xml/Makefile ends here