2014-11-18 22:32:50 +00:00
|
|
|
SUBDIRS = manuals
|
2013-04-03 06:23:33 +00:00
|
|
|
|
2013-07-18 23:17:33 +00:00
|
|
|
html: $(DO_HTML)
|
|
|
|
install-html: $(DO_INSTALL_HTML)
|
2013-08-21 12:58:03 +00:00
|
|
|
website: website-html-doxygen
|
2013-04-03 06:23:33 +00:00
|
|
|
|
2013-08-21 12:58:03 +00:00
|
|
|
DO_HTML = doc-html-doxygen website-html-doxygen
|
2013-07-18 23:17:33 +00:00
|
|
|
DO_INSTALL_HTML = doc-install-html-doxygen
|
2013-04-03 06:23:33 +00:00
|
|
|
|
|
|
|
#doxygen
|
2013-08-21 12:58:03 +00:00
|
|
|
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
|
2013-04-03 06:23:33 +00:00
|
|
|
|
2013-08-21 12:58:03 +00:00
|
|
|
$(DOXY_WEBSITE_BLD_DIR):
|
|
|
|
if test ! -d $(DOXY_WEBSITE_BLD_DIR); then \
|
|
|
|
mkdir -p $(DOXY_WEBSITE_BLD_DIR); \
|
2013-07-18 22:11:05 +00:00
|
|
|
fi
|
|
|
|
|
2013-08-21 12:58:03 +00:00
|
|
|
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)
|
2013-04-03 06:23:33 +00:00
|
|
|
|
2013-08-21 12:58:03 +00:00
|
|
|
doc-html-doxygen: doxygen-api-cfg
|
|
|
|
doxygen $(DOXY_API_BLD_CFG)
|
|
|
|
|
|
|
|
website-html-doxygen: doxygen-website-cfg
|
|
|
|
doxygen $(DOXY_WEBSITE_BLD_CFG)
|
2013-04-03 06:23:33 +00:00
|
|
|
|
2013-07-18 23:17:33 +00:00
|
|
|
doc-install-html-doxygen: doc-html-doxygen
|
2014-09-09 11:04:45 +00:00
|
|
|
test -z "$(DESTDIR)$(docdir)" || $(mkinstalldirs) "$(DESTDIR)$(docdir)"
|
|
|
|
cp -r ${DOXY_API_BLD_DIR} "$(DESTDIR)$(docdir)"
|
2013-08-21 12:58:03 +00:00
|
|
|
|
|
|
|
website-install-html-doxygen: doxygen-website-cfg
|
2014-09-09 11:04:45 +00:00
|
|
|
test -z "$(DESTDIR)$(docdir)/website" || $(mkinstalldirs) "$(DESTDIR)$(docdir)/website"
|
|
|
|
cp -r $(DOXY_WEBSITE_BLD_DIR) "$(DESTDIR)$(docdir)/website"
|
2013-04-03 06:23:33 +00:00
|
|
|
|
|
|
|
# By adding these files here, automake will remove them for 'make clean'
|
2013-08-21 12:58:03 +00:00
|
|
|
CLEANFILES = $(DOXY_API_BLD_CFG) $(DOXY_WEBSITE_BLD_CFG)
|
2013-04-03 06:23:33 +00:00
|
|
|
|
|
|
|
# To remove directories.
|
|
|
|
clean-local:
|
2013-08-21 12:58:03 +00:00
|
|
|
rm -rf $(DOXY_API_BLD_DIR) $(DOXY_WEBSITE_BLD_DIR)
|