PageRenderTime 45ms CodeModel.GetById 20ms 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
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. # Examples/xml/Makefile
  2. top_srcdir = @top_srcdir@
  3. cleanup = tail +2 \
  4. | sed -e 's/ident="ID[0-9A-F]*"//g' \
  5. -e 's,name="/[^"]*/\([^/]*\.swg\)",name="\1",g'
  6. all-dot-i-files = \
  7. error.i \
  8. example.i \
  9. example_apply.i \
  10. example_const.i \
  11. example_gif.i \
  12. example_inl.i \
  13. example_p5.i \
  14. example_ro.i \
  15. example_title_add.i \
  16. example_xml.i \
  17. gnarly.i
  18. all: check
  19. chk-swiglib = $(top_srcdir)/Lib
  20. check:
  21. for f in $(all-dot-i-files) ; do \
  22. base=`basename $$f .i` ; \
  23. xml=$$base.xml ; \
  24. SWIG_LIB=$(chk-swiglib) $(top_srcdir)/swig -xml $$xml $$f ; \
  25. cat $$xml | $(cleanup) | diff -c $$base.expected-xml - ; \
  26. done
  27. clean:
  28. rm -f *.xml
  29. distclean: clean
  30. rm -f Makefile
  31. # from here on, non-developers beware!
  32. %.expected-xml : %.i
  33. SWIG_LIB=$(top_srcdir)/Lib $(top_srcdir)/swig -xml tmp-file $^
  34. cat tmp-file | $(cleanup) > $@
  35. rm -f tmp-file
  36. all-expected-xml:
  37. for f in $(all-dot-i-files) ; do \
  38. make `basename $$f .i`.expected-xml ; done
  39. all-expected-xml-clean:
  40. rm -f *.expected-xml
  41. # Examples/xml/Makefile ends here