Commit 488c3f62 authored by Kjell Ahlstedt's avatar Kjell Ahlstedt

Split Makefile.am

* Makefile.am: Move most of the contents to the new files. It makes libxml++
more like other mm packages.
* docs/Makefile.am:
* libxml++/filelist.am:
* libxml++/Makefile.am:
* MSVC_Net2010/filelist.am: New files.
* configure.ac: Add the new Makefiles to AC_CONFIG_FILES().
* docs/reference/Doxyfile.in: Remove docs/ from relative paths.
parent f014f5ee
## This file is part of libxml++.
msvc_net2010_data = \
libxml++.sln \
README \
gendef/gendef.cc \
gendef/gendef.vcxproj \
gendef/gendef.vcxproj.filters \
libxml++/libxml++.rc \
libxml++/libxml++.vcxproj \
libxml++/libxml++.vcxproj.filters \
libxml++/libxml++config.h \
examples/dom_build/dom_build.vcxproj \
examples/dom_build/dom_build.vcxproj.filters \
examples/dom_parse_entities/dom_parse_entities.vcxproj \
examples/dom_parse_entities/dom_parse_entities.vcxproj.filters \
examples/dom_parser/dom_parser.vcxproj \
examples/dom_parser/dom_parser.vcxproj.filters \
examples/dom_parser_raw/dom_parser_raw.vcxproj \
examples/dom_parser_raw/dom_parser_raw.vcxproj.filters \
examples/dom_read_write/dom_read_write.vcxproj \
examples/dom_read_write/dom_read_write.vcxproj.filters \
examples/dom_xpath/dom_xpath.vcxproj \
examples/dom_xpath/dom_xpath.vcxproj.filters \
examples/dtdvalidation/dtdvalidation.vcxproj \
examples/dtdvalidation/dtdvalidation.vcxproj.filters \
examples/import_node/import_node.vcxproj \
examples/import_node/import_node.vcxproj.filters \
examples/sax_exception/sax_exception.vcxproj \
examples/sax_exception/sax_exception.vcxproj.filters \
examples/sax_parser/sax_parser.vcxproj \
examples/sax_parser/sax_parser.vcxproj.filters \
examples/sax_parser_build_dom/sax_parser_build_dom.vcxproj \
examples/sax_parser_build_dom/sax_parser_build_dom.vcxproj.filters \
examples/sax_parser_entities/sax_parser_entities.vcxproj \
examples/sax_parser_entities/sax_parser_entities.vcxproj.filters \
examples/schemavalidation/schemavalidation.vcxproj \
examples/schemavalidation/schemavalidation.vcxproj.filters \
examples/textreader/textreader.vcxproj \
examples/textreader/textreader.vcxproj.filters
SUBDIRS = . examples tests
## This file is part of libxml++.
ACLOCAL_AMFLAGS = -I macros ${ACLOCAL_FLAGS}
DISTCHECK_CONFIGURE_FLAGS = --enable-warnings=fatal
library_configdir = $(libdir)/libxml++-@LIBXMLXX_API_VERSION@/include
library_config_DATA = libxml++config.h
pkgconfigdir = $(libdir)/pkgconfig
nodist_pkgconfig_DATA = libxml++-@LIBXMLXX_API_VERSION@.pc
lib_LTLIBRARIES = libxml++/libxml++-@LIBXMLXX_API_VERSION@.la
libxml___libxml___@LIBXMLXX_API_VERSION@_la_LDFLAGS = \
-version-info $(LIBXMLXX_SO_VERSION) -no-undefined
libxml___libxml___@LIBXMLXX_API_VERSION@_la_LIBADD = $(LIBXMLXX_LIBS)
libxml___libxml___@LIBXMLXX_API_VERSION@_la_SOURCES = $(cc_sources) $(h_sources_public)
AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) -I. $(LIBXMLXX_CFLAGS)
AM_CXXFLAGS = $(LIBXMLXX_WXXFLAGS)
DEFS = @DEFS@ -DLIBXMLPP_BUILD
h_root_sources_public = libxml++/libxml++.h \
libxml++/attribute.h \
libxml++/attributedeclaration.h \
libxml++/attributenode.h \
libxml++/document.h \
libxml++/dtd.h \
libxml++/keepblanks.h \
libxml++/noncopyable.h \
libxml++/relaxngschema.h \
libxml++/schema.h \
libxml++/schemabase.h \
libxml++/xsdschema.h
h_exceptions_sources_public = libxml++/exceptions/exception.h \
libxml++/exceptions/parse_error.h \
libxml++/exceptions/validity_error.h \
libxml++/exceptions/internal_error.h \
libxml++/exceptions/wrapped_exception.h
h_io_sources_public = libxml++/io/istreamparserinputbuffer.h \
libxml++/io/outputbuffer.h \
libxml++/io/ostreamoutputbuffer.h \
libxml++/io/parserinputbuffer.h
h_nodes_sources_public = libxml++/nodes/cdatanode.h \
libxml++/nodes/commentnode.h \
libxml++/nodes/contentnode.h \
libxml++/nodes/element.h \
libxml++/nodes/entitydeclaration.h \
libxml++/nodes/entityreference.h \
libxml++/nodes/node.h \
libxml++/nodes/processinginstructionnode.h \
libxml++/nodes/textnode.h \
libxml++/nodes/xincludeend.h \
libxml++/nodes/xincludestart.h
h_parsers_sources_public = libxml++/parsers/parser.h \
libxml++/parsers/saxparser.h \
libxml++/parsers/domparser.h \
libxml++/parsers/textreader.h
h_validators_sources_public = libxml++/validators/dtdvalidator.h \
libxml++/validators/relaxngvalidator.h \
libxml++/validators/schemavalidator.h \
libxml++/validators/schemavalidatorbase.h \
libxml++/validators/validator.h \
libxml++/validators/xsdvalidator.h
h_sources_public = $(h_root_sources_public) \
$(h_exceptions_sources_public) \
$(h_io_sources_public) \
$(h_nodes_sources_public) \
$(h_parsers_sources_public) \
$(h_validators_sources_public)
cc_sources = libxml++/attribute.cc \
libxml++/attributedeclaration.cc \
libxml++/attributenode.cc \
libxml++/document.cc \
libxml++/dtd.cc \
libxml++/keepblanks.cc \
libxml++/noncopyable.cc \
libxml++/relaxngschema.cc \
libxml++/schema.cc \
libxml++/schemabase.cc \
libxml++/xsdschema.cc \
libxml++/exceptions/exception.cc \
libxml++/exceptions/parse_error.cc \
libxml++/exceptions/validity_error.cc \
libxml++/exceptions/internal_error.cc \
libxml++/exceptions/wrapped_exception.cc \
libxml++/io/istreamparserinputbuffer.cc \
libxml++/io/outputbuffer.cc \
libxml++/io/ostreamoutputbuffer.cc \
libxml++/io/parserinputbuffer.cc \
libxml++/nodes/cdatanode.cc \
libxml++/nodes/commentnode.cc \
libxml++/nodes/contentnode.cc \
libxml++/nodes/entitydeclaration.cc \
libxml++/nodes/entityreference.cc \
libxml++/nodes/element.cc \
libxml++/nodes/node.cc \
libxml++/nodes/processinginstructionnode.cc \
libxml++/nodes/textnode.cc \
libxml++/nodes/xincludeend.cc \
libxml++/nodes/xincludestart.cc \
libxml++/parsers/parser.cc \
libxml++/parsers/saxparser.cc \
libxml++/parsers/domparser.cc \
libxml++/parsers/textreader.cc \
libxml++/validators/dtdvalidator.cc \
libxml++/validators/relaxngvalidator.cc \
libxml++/validators/schemavalidator.cc \
libxml++/validators/schemavalidatorbase.cc \
libxml++/validators/validator.cc \
libxml++/validators/xsdvalidator.cc
library_includedir = $(includedir)/libxml++-$(LIBXMLXX_API_VERSION)/libxml++
library_exceptions_includedir = $(library_includedir)/exceptions
library_io_includedir = $(library_includedir)/io
library_nodes_includedir = $(library_includedir)/nodes
library_parsers_includedir = $(library_includedir)/parsers
library_validators_includedir = $(library_includedir)/validators
library_include_HEADERS = $(h_root_sources_public)
library_exceptions_include_HEADERS = $(h_exceptions_sources_public)
library_io_include_HEADERS = $(h_io_sources_public)
library_nodes_include_HEADERS = $(h_nodes_sources_public)
library_parsers_include_HEADERS = $(h_parsers_sources_public)
library_validators_include_HEADERS = $(h_validators_sources_public)
docs/manual/libxml++.xml: docs/manual/libxml++_without_code.xml docs/manual/insert_example_code.pl
$(AM_V_GEN)$(PERL) -- docs/manual/insert_example_code.pl examples $< >$@
if ENABLE_DOCUMENTATION
book_name = $(LIBXMLXX_MODULE_NAME)
doc_input = $(h_sources_public)
doc_outdir = docs/reference
# Sets dist_noinst_DATA, DISTCLEANFILES and MAINTAINERCLEANFILES
include $(top_srcdir)/macros/doc-reference.am
manualdir = $(docdir)/manual
manual_htmldir = $(manualdir)/html
manual_html_files = $(wildcard docs/manual/html/*.html)
docs/manual/html/index.html: docs/manual/libxml++.xml docs/manual/docbook-customisation.xsl
$(AM_V_at)rm -fr doc/manual/html
$(AM_V_at)$(MKDIR_P) docs/manual/html
$(AM_V_GEN)$(XSLTPROC) -o docs/manual/html/ --xinclude --catalogs \
$(top_srcdir)/docs/manual/docbook-customisation.xsl $<
docs/manual/libxml++.pdf: docs/manual/libxml++.xml
$(AM_V_GEN)$(DB2LATEX) -o $@ -O docs/manual -tpdf $<
doc_subdirs = docs
else
doc_subdirs =
endif
SUBDIRS = libxml++ examples tests $(doc_subdirs)
validate_original_manual: docs/manual/libxml++_without_code.xml
$(XMLLINT) --xinclude --postvalid --noout $<
library_configdir = $(libdir)/$(LIBXMLXX_MODULE_NAME)/include
nodist_library_config_HEADERS = libxml++config.h
validate_manual: docs/manual/libxml++.xml
$(XMLLINT) --xinclude --postvalid --noout $<
all-local: docs/manual/html/index.html
else # !ENABLE_DOCUMENTATION
dist_noinst_DATA =
DISTCLEANFILES =
MAINTAINERCLEANFILES =
endif # ENABLE_DOCUMENTATION
dist_noinst_DATA += libxml++config.h.in \
libxml++-$(LIBXMLXX_API_VERSION).pc.in \
docs/manual/docbook-customisation.xsl \
$(manual_html_files) \
docs/manual/libxml++.xml \
docs/manual/libxml++_without_code.xml \
MSVC_Net2010/libxml++.sln \
MSVC_Net2010/README \
MSVC_Net2010/gendef/gendef.cc \
MSVC_Net2010/gendef/gendef.vcxproj \
MSVC_Net2010/gendef/gendef.vcxproj.filters \
MSVC_Net2010/libxml++/libxml++.rc \
MSVC_Net2010/libxml++/libxml++.vcxproj \
MSVC_Net2010/libxml++/libxml++.vcxproj.filters \
MSVC_Net2010/libxml++/libxml++config.h \
MSVC_Net2010/examples/dom_build/dom_build.vcxproj \
MSVC_Net2010/examples/dom_build/dom_build.vcxproj.filters \
MSVC_Net2010/examples/dom_parse_entities/dom_parse_entities.vcxproj \
MSVC_Net2010/examples/dom_parse_entities/dom_parse_entities.vcxproj.filters \
MSVC_Net2010/examples/dom_parser/dom_parser.vcxproj \
MSVC_Net2010/examples/dom_parser/dom_parser.vcxproj.filters \
MSVC_Net2010/examples/dom_parser_raw/dom_parser_raw.vcxproj \
MSVC_Net2010/examples/dom_parser_raw/dom_parser_raw.vcxproj.filters \
MSVC_Net2010/examples/dom_read_write/dom_read_write.vcxproj \
MSVC_Net2010/examples/dom_read_write/dom_read_write.vcxproj.filters \
MSVC_Net2010/examples/dom_xpath/dom_xpath.vcxproj \
MSVC_Net2010/examples/dom_xpath/dom_xpath.vcxproj.filters \
MSVC_Net2010/examples/dtdvalidation/dtdvalidation.vcxproj \
MSVC_Net2010/examples/dtdvalidation/dtdvalidation.vcxproj.filters \
MSVC_Net2010/examples/import_node/import_node.vcxproj \
MSVC_Net2010/examples/import_node/import_node.vcxproj.filters \
MSVC_Net2010/examples/sax_exception/sax_exception.vcxproj \
MSVC_Net2010/examples/sax_exception/sax_exception.vcxproj.filters \
MSVC_Net2010/examples/sax_parser/sax_parser.vcxproj \
MSVC_Net2010/examples/sax_parser/sax_parser.vcxproj.filters \
MSVC_Net2010/examples/sax_parser_build_dom/sax_parser_build_dom.vcxproj \
MSVC_Net2010/examples/sax_parser_build_dom/sax_parser_build_dom.vcxproj.filters \
MSVC_Net2010/examples/sax_parser_entities/sax_parser_entities.vcxproj \
MSVC_Net2010/examples/sax_parser_entities/sax_parser_entities.vcxproj.filters \
MSVC_Net2010/examples/schemavalidation/schemavalidation.vcxproj \
MSVC_Net2010/examples/schemavalidation/schemavalidation.vcxproj.filters \
MSVC_Net2010/examples/textreader/textreader.vcxproj \
MSVC_Net2010/examples/textreader/textreader.vcxproj.filters
dist_noinst_SCRIPTS = autogen.sh \
docs/manual/insert_example_code.pl
pkgconfigdir = $(libdir)/pkgconfig
nodist_pkgconfig_DATA = $(LIBXMLXX_MODULE_NAME).pc
DISTCLEANFILES += MSVC_Net2010/libxml++/libxml++config.h
include $(srcdir)/MSVC_Net2010/filelist.am
MAINTAINERCLEANFILES += docs/manual/html/*.html
dist_noinst_DATA = $(addprefix MSVC_Net2010/,$(msvc_net2010_data))
# Make it easy to upload to the sourceforge web site.
# The manual and API reference are hosted on library.gnome.org via tarball releases.
web_path_project = /home/groups/l/li/libxmlplusplus/htdocs/
rsync_args = -vz --rsh ssh --recursive --cvs-exclude --exclude="**1.0**" --exclude=".cvsignore" --exclude="Makefile" --exclude="Makefile.in" --exclude=".deps" --exclude=".libs"
dist_noinst_SCRIPTS = autogen.sh
post-html: docs/index.html
rsync $(rsync_args) -r docs/index.html $$USER,libxmlplusplus@web.sourceforge.net:$(web_path_project)
rsync $(rsync_args) -r examples $$USER,libxmlplusplus@web.sourceforge.net:$(web_path_project)
DISTCLEANFILES = MSVC_Net2010/libxml++/libxml++config.h
# Optional: auto-generate the ChangeLog file from the git log on make dist
include $(top_srcdir)/macros/dist-changelog.am
......@@ -60,8 +60,10 @@ MM_CHECK_PERL()
AC_DEFINE([LIBXMLCPP_EXCEPTIONS_ENABLED],[1], [This is always set. This is only for backwards compatibility.])
AC_CONFIG_FILES([Makefile
libxml++/Makefile
examples/Makefile
tests/Makefile
docs/Makefile
docs/reference/Doxyfile
MSVC_Net2010/libxml++/libxml++.rc
libxml++-2.6.pc])
......
## Copyright (C) 2015 The libxml++ development team
##
## This library is free software; you can redistribute it and/or
## modify it under the terms of the GNU Lesser General Public
## License as published by the Free Software Foundation; either
## version 2.1 of the License, or (at your option) any later version.
##
## This library is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## Lesser General Public License for more details.
##
## You should have received a copy of the GNU Lesser General Public License
## along with this library. If not, see <http://www.gnu.org/licenses/>.
include $(top_srcdir)/libxml++/filelist.am
book_name = $(LIBXMLXX_MODULE_NAME)
doc_input = $(addprefix $(top_srcdir)/libxml++/,$(h_sources_public))
# Sets dist_noinst_DATA, DISTCLEANFILES and MAINTAINERCLEANFILES
include $(top_srcdir)/macros/doc-reference.am
manual/libxml++.xml: manual/libxml++_without_code.xml manual/insert_example_code.pl
$(AM_V_GEN)$(PERL) -- manual/insert_example_code.pl examples $< >$@
manualdir = $(docdir)/manual
manual_htmldir = $(manualdir)/html
manual_html_files = $(wildcard manual/html/*.html)
manual/html/index.html: manual/libxml++.xml manual/docbook-customisation.xsl
$(AM_V_at)rm -fr manual/html
$(AM_V_at)$(MKDIR_P) manual/html
$(AM_V_GEN)$(XSLTPROC) -o manual/html/ --xinclude --catalogs \
$(top_srcdir)/docs/manual/docbook-customisation.xsl $<
manual/libxml++.pdf: manual/libxml++.xml
$(AM_V_GEN)$(DB2LATEX) -o $@ -O manual -tpdf $<
validate_original_manual: manual/libxml++_without_code.xml
$(XMLLINT) --xinclude --postvalid --noout $<
validate_manual: manual/libxml++.xml
$(XMLLINT) --xinclude --postvalid --noout $<
all-local: manual/html/index.html
dist_noinst_DATA += \
manual/docbook-customisation.xsl \
$(manual_html_files) \
manual/libxml++.xml \
manual/libxml++_without_code.xml
dist_noinst_SCRIPTS = \
manual/insert_example_code.pl
MAINTAINERCLEANFILES += manual/html/*.html
# Make it easy to upload to the sourceforge web site.
# The manual and API reference are hosted on developer.gnome.org via tarball releases.
web_path_project = /home/groups/l/li/libxmlplusplus/htdocs/
rsync_args = -vz --rsh ssh --recursive --cvs-exclude --exclude="**1.0**" --exclude=".gitignore" --exclude="Makefile" --exclude="Makefile.in" --exclude=".deps" --exclude=".libs"
post-html: index.html
rsync $(rsync_args) -r index.html $$USER,libxmlplusplus@web.sourceforge.net:$(web_path_project)
rsync $(rsync_args) -r ../examples $$USER,libxmlplusplus@web.sourceforge.net:$(web_path_project)
......@@ -9,7 +9,7 @@ PROJECT_NAME = @PACKAGE_NAME@
PROJECT_NUMBER = @PACKAGE_VERSION@
PROJECT_BRIEF =
PROJECT_LOGO =
OUTPUT_DIRECTORY = docs/reference
OUTPUT_DIRECTORY = reference
CREATE_SUBDIRS = NO
ALLOW_UNICODE_NAMES = NO
OUTPUT_LANGUAGE = English
......@@ -101,7 +101,7 @@ WARN_IF_UNDOCUMENTED = YES
WARN_IF_DOC_ERROR = YES
WARN_NO_PARAMDOC = NO
WARN_FORMAT = "$file:$line: $text"
WARN_LOGFILE = docs/reference/doxygen.log
WARN_LOGFILE = reference/doxygen.log
#---------------------------------------------------------------------------
# Configuration options related to the input files
#---------------------------------------------------------------------------
......@@ -304,7 +304,7 @@ SKIP_FUNCTION_MACROS = YES
# Configuration options related to external references
#---------------------------------------------------------------------------
TAGFILES = @DOXYGEN_TAGFILES@
GENERATE_TAGFILE = "docs/reference/@LIBXMLXX_MODULE_NAME@.tag"
GENERATE_TAGFILE = "reference/@LIBXMLXX_MODULE_NAME@.tag"
ALLEXTERNALS = NO
EXTERNAL_GROUPS = NO
EXTERNAL_PAGES = YES
......
## Copyright (C) 2015 The libxml++ development team
##
## This library is free software; you can redistribute it and/or
## modify it under the terms of the GNU Lesser General Public
## License as published by the Free Software Foundation; either
## version 2.1 of the License, or (at your option) any later version.
##
## This library is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## Lesser General Public License for more details.
##
## You should have received a copy of the GNU Lesser General Public License
## along with this library. If not, see <http://www.gnu.org/licenses/>.
AUTOMAKE_OPTIONS = subdir-objects
include $(srcdir)/filelist.am
lib_LTLIBRARIES = libxml++-@LIBXMLXX_API_VERSION@.la
libxml___@LIBXMLXX_API_VERSION@_la_SOURCES = $(cc_sources) $(h_sources_public)
libxml___@LIBXMLXX_API_VERSION@_la_LDFLAGS = -no-undefined -version-info $(LIBXMLXX_SO_VERSION)
libxml___@LIBXMLXX_API_VERSION@_la_LIBADD = $(LIBXMLXX_LIBS)
AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) $(LIBXMLXX_CFLAGS) -DLIBXMLPP_BUILD
AM_CXXFLAGS = $(LIBXMLXX_WXXFLAGS)
library_includedir = $(includedir)/$(LIBXMLXX_MODULE_NAME)/libxml++
nobase_library_include_HEADERS = $(h_sources_public)
## This file is part of libxml++.
h_root_sources_public = \
attribute.h \
attributedeclaration.h \
attributenode.h \
document.h \
dtd.h \
keepblanks.h \
noncopyable.h \
relaxngschema.h \
schema.h \
schemabase.h \
xsdschema.h
h_exceptions_sources_public = \
exceptions/exception.h \
exceptions/parse_error.h \
exceptions/validity_error.h \
exceptions/internal_error.h \
exceptions/wrapped_exception.h
h_io_sources_public = \
io/istreamparserinputbuffer.h \
io/outputbuffer.h \
io/ostreamoutputbuffer.h \
io/parserinputbuffer.h
h_nodes_sources_public = \
nodes/cdatanode.h \
nodes/commentnode.h \
nodes/contentnode.h \
nodes/element.h \
nodes/entitydeclaration.h \
nodes/entityreference.h \
nodes/node.h \
nodes/processinginstructionnode.h \
nodes/textnode.h \
nodes/xincludeend.h \
nodes/xincludestart.h
h_parsers_sources_public = \
parsers/parser.h \
parsers/saxparser.h \
parsers/domparser.h \
parsers/textreader.h
h_validators_sources_public = \
validators/dtdvalidator.h \
validators/relaxngvalidator.h \
validators/schemavalidator.h \
validators/schemavalidatorbase.h \
validators/validator.h \
validators/xsdvalidator.h
h_sources_public = \
libxml++.h \
$(h_root_sources_public) \
$(h_exceptions_sources_public) \
$(h_io_sources_public) \
$(h_nodes_sources_public) \
$(h_parsers_sources_public) \
$(h_validators_sources_public)
cc_sources = \
$(h_root_sources_public:.h=.cc) \
$(h_exceptions_sources_public:.h=.cc) \
$(h_io_sources_public:.h=.cc) \
$(h_nodes_sources_public:.h=.cc) \
$(h_parsers_sources_public:.h=.cc) \
$(h_validators_sources_public:.h=.cc)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment