mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-24 02:32:16 +00:00
03e57be0d1
* doc/Makefile.am (html-local): Make the html file generation be triggered by the html-local target, not the html target. The html target is a recursive target that calls the the html-local targets under each directory. (apidoc-html-doxygen): Rename the doc-html-doxygen target into (apidoc-install-html-doxygen): Rename doc-install-html-doxygen into this. this. (DO_HTML, DO_INSTALL_HTML): Adjust. (install-data-local): New target. * doc/manuals/Makefile.am (install-html, install-data-local): New targets. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
62 lines
2.0 KiB
Makefile
62 lines
2.0 KiB
Makefile
SUBDIRS = manuals
|
|
|
|
html-local: $(DO_HTML)
|
|
install-html: $(DO_INSTALL_HTML)
|
|
website: website-html-doxygen
|
|
|
|
DO_HTML = apidoc-html-doxygen website-html-doxygen
|
|
DO_INSTALL_HTML = apidoc-install-html-doxygen
|
|
|
|
#doxygen
|
|
DOXY_API_SRC_CFG = ${abs_srcdir}/api/libabigail.doxy
|
|
DOXY_API_BLD_DIR = ${abs_builddir}/api
|
|
DOXY_API_BLD_CFG = ${abs_builddir}/api/html.doxy
|
|
DOXY_WEBSITE_BLD_DIR = ${abs_builddir}/website
|
|
DOXY_WEBSITE_SRC_CFG = ${abs_srcdir}/website/libabigail-website.doxy
|
|
DOXY_WEBSITE_BLD_CFG = ${abs_builddir}/website/libabigail-website.doxy
|
|
|
|
$(DOXY_API_BLD_DIR):
|
|
if test ! -d $(DOXY_API_BLD_DIR); then \
|
|
mkdir -p $(DOXY_API_BLD_DIR); \
|
|
fi
|
|
|
|
$(DOXY_WEBSITE_BLD_DIR):
|
|
if test ! -d $(DOXY_WEBSITE_BLD_DIR); then \
|
|
mkdir -p $(DOXY_WEBSITE_BLD_DIR); \
|
|
fi
|
|
|
|
doxygen-api-cfg: $(DOXY_API_SRC_CFG) $(DOXY_API_BLD_DIR)
|
|
sed -e "s=LIBABIGAIL_INPUT=${abs_srcdir}/..=g" < $(DOXY_API_SRC_CFG) \
|
|
> $(DOXY_API_BLD_CFG)
|
|
sed -i -e "s=LIBABIGAIL_OUTPUT=${abs_builddir}/..=g" $(DOXY_API_BLD_CFG)
|
|
|
|
doxygen-website-cfg: $(DOXY_WEBSITE_SRC_CFG) $(DOXY_WEBSITE_BLD_DIR)
|
|
sed -e "s=LIBABIGAIL_INPUT=${abs_srcdir}/..=g" < $(DOXY_WEBSITE_SRC_CFG) \
|
|
> $(DOXY_WEBSITE_BLD_CFG)
|
|
sed -i -e "s=LIBABIGAIL_OUTPUT=${abs_builddir}/..=g" $(DOXY_WEBSITE_BLD_CFG)
|
|
|
|
apidoc-html-doxygen: doxygen-api-cfg
|
|
doxygen $(DOXY_API_BLD_CFG)
|
|
|
|
website-html-doxygen: doxygen-website-cfg
|
|
doxygen $(DOXY_WEBSITE_BLD_CFG)
|
|
|
|
apidoc-install-html-doxygen: apidoc-html-doxygen
|
|
test -z "$(DESTDIR)$(docdir)" || $(mkinstalldirs) "$(DESTDIR)$(docdir)"
|
|
cp -r ${DOXY_API_BLD_DIR} "$(DESTDIR)$(docdir)"
|
|
|
|
website-install-html-doxygen: doxygen-website-cfg
|
|
test -z "$(DESTDIR)$(docdir)/website" || $(mkinstalldirs) "$(DESTDIR)$(docdir)/website"
|
|
cp -r $(DOXY_WEBSITE_BLD_DIR) "$(DESTDIR)$(docdir)/website"
|
|
|
|
# By adding these files here, automake will remove them for 'make clean'
|
|
CLEANFILES = $(DOXY_API_BLD_CFG) $(DOXY_WEBSITE_BLD_CFG)
|
|
|
|
# To remove directories.
|
|
clean-local:
|
|
rm -rf $(DOXY_API_BLD_DIR) $(DOXY_WEBSITE_BLD_DIR)
|
|
|
|
#To install everything:
|
|
|
|
install-data-local: install-html
|