icinga2/docs/Makefile.am

39 lines
930 B
Makefile
Raw Normal View History

2013-02-05 16:35:22 +01:00
.PHONY: clean
EXTRA_DIST = \
2013-05-06 12:07:46 +02:00
icinga2-config-syntax.adoc \
icinga2-config-types.adoc \
icinga2-intro.adoc \
icinga2-tutorial.adoc \
icinga2.8
icinga2docdir = ${docdir}
icinga2doc_DATA =
man8_MANS = \
icinga2.8
2013-05-06 12:07:46 +02:00
.SUFFIXES = .html .adoc
2013-02-05 20:01:52 +01:00
if AD_COND_doc
icinga2doc_DATA += \
icinga2-config-syntax.html \
icinga2-config-types.html \
icinga2-intro.html \
icinga2-tutorial.html
2013-05-06 12:07:46 +02:00
.adoc.html:
2013-04-23 12:35:06 +02:00
$(AD_ENV) $(AD_ASCIIDOC) -a toc -a numbered -o $@ $<
endif AD_COND_doc
2013-02-05 16:35:22 +01:00
2013-04-19 13:23:25 +02:00
icinga2.8: $(top_builddir)/icinga-app/icinga2
-$(HELP2MAN) --name='The Icinga 2 networking monitoring daemon.' --section=8 --no-info --output=$@ $(top_builddir)/icinga-app/icinga2
# The icinga2.8 file is in EXTRA_DIST which means we need to build it when "make dist" is run.
# Unfortunately in order to build this man page we need to build Icinga 2. Meh.
$(top_builddir)/icinga-app/icinga2:
$(MAKE) -C $(top_builddir)
distclean:
2013-02-05 16:35:22 +01:00
rm -f $(icinga2doc_DATA)