Imported Upstream version 2.91.1
[platform/upstream/libxml++.git] / examples / Makefile.am
index 63e873e..f73e285 100644 (file)
@@ -25,6 +25,8 @@ check_PROGRAMS = \
   dom_parser/dom_parser \
   dom_parser_raw/dom_parser_raw \
   dom_read_write/dom_read_write \
+  dom_update_namespace/dom_update_namespace \
+  dom_xinclude/dom_xinclude \
   dom_xpath/dom_xpath \
   dtdvalidation/dtdvalidation \
   import_node/import_node \
@@ -36,19 +38,42 @@ check_PROGRAMS = \
   textreader/textreader
 
 # Shell scripts that call the example programs.
-check_SCRIPTS = $(addsuffix make-check-sh,$(dir $(check_PROGRAMS)))
+check_SCRIPTS = \
+  dom_build/make_check.sh \
+  dom_parse_entities/make_check.sh \
+  dom_parser/make_check.sh \
+  dom_parser_raw/make_check.sh \
+  dom_read_write/make_check.sh \
+  dom_update_namespace/make_check.sh \
+  dom_xinclude/make_check.sh \
+  dom_xpath/make_check.sh \
+  dtdvalidation/make_check.sh \
+  import_node/make_check.sh \
+  sax_exception/make_check.sh \
+  sax_parser/make_check.sh \
+  sax_parser_build_dom/make_check.sh \
+  sax_parser_entities/make_check.sh \
+  schemavalidation/make_check.sh \
+  textreader/make_check.sh
+
 TESTS = $(check_SCRIPTS)
 
+xmlpp_test_util = testutilities.h testutilities.cc
+
 dom_build_dom_build_SOURCES = \
   dom_build/main.cc
 dom_parse_entities_dom_parse_entities_SOURCES = \
-  dom_parse_entities/main.cc
+  dom_parse_entities/main.cc $(xmlpp_test_util)
 dom_parser_dom_parser_SOURCES = \
-  dom_parser/main.cc
+  dom_parser/main.cc $(xmlpp_test_util)
 dom_parser_raw_dom_parser_raw_SOURCES = \
   dom_parser_raw/main.cc
 dom_read_write_dom_read_write_SOURCES = \
   dom_read_write/main.cc
+dom_update_namespace_dom_update_namespace_SOURCES = \
+  dom_update_namespace/main.cc
+dom_xinclude_dom_xinclude_SOURCES = \
+  dom_xinclude/main.cc
 dom_xpath_dom_xpath_SOURCES = \
   dom_xpath/main.cc
 dtdvalidation_dtdvalidation_SOURCES = \
@@ -96,6 +121,11 @@ dist_noinst_DATA = \
   dom_read_write/README \
   dom_read_write/example.xml \
   dom_read_write/example.dtd \
+  dom_update_namespace/example1.xml \
+  dom_update_namespace/example2.xml \
+  dom_xinclude/example.xml \
+  dom_xinclude/include1.txt \
+  dom_xinclude/include2.xml \
   dom_xpath/example.xml \
   dtdvalidation/example.dtd \
   import_node/example1.xml \
@@ -105,6 +135,7 @@ dist_noinst_DATA = \
   sax_parser_build_dom/README \
   sax_parser_build_dom/example.xml \
   sax_parser_entities/example.xml \
+  schemavalidation/example.rng \
   schemavalidation/example.xml \
   schemavalidation/example.xsd \
   textreader/example.xml
@@ -121,18 +152,18 @@ dist_noinst_DATA = \
 # which may or may not be the same as the source directory.
 # Here it's necessary to specify parameters when the input file and the output
 # file are located in different directories.
-dom_read_write/make-check-sh: Makefile
+dom_read_write/make_check.sh: Makefile
        echo '# Generated and used by "make check"' >$@
        echo 'dom_read_write/dom_read_write "$(srcdir)/dom_read_write/example.xml" dom_read_write/example_output.xml >/dev/null' >>$@
        chmod +x $@
 
 script_template = cd "$(srcdir)/<!progname!>" && "$(abs_builddir)/<!progname!>/<!progname!>" >/dev/null
-standard_scripts = $(filter-out dom_read_write/make-check-sh,$(check_SCRIPTS))
+standard_scripts = $(filter-out dom_read_write/make_check.sh,$(check_SCRIPTS))
 
 # All other script files are generated like so:
 $(standard_scripts): Makefile
        echo '# Generated and used by "make check"' >$@
-       echo '$(subst <!progname!>,$(subst /make-check-sh,,$@),$(script_template))' >>$@
+       echo '$(subst <!progname!>,$(subst /make_check.sh,,$@),$(script_template))' >>$@
        chmod +x $@
 
 CLEANFILES = \