icinga2/docs/Makefile.am

50 lines
1.1 KiB
Makefile
Raw Normal View History

2013-02-05 16:35:22 +01:00
.PHONY: clean
EXTRA_DIST = \
icinga2.adoc \
2013-08-14 13:46:13 +02:00
icinga2-config.adoc \
2013-05-06 12:07:46 +02:00
icinga2-config-syntax.adoc \
icinga2-config-types.adoc \
2013-08-14 13:46:13 +02:00
icinga2-install.adoc \
2013-05-06 12:07:46 +02:00
icinga2-intro.adoc \
icinga2-tutorial.adoc \
2013-08-14 13:46:13 +02:00
icinga2-main.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.html \
2013-08-14 13:46:13 +02:00
icinga2-config.html \
icinga2-config-syntax.html \
icinga2-config-types.html \
2013-08-14 13:46:13 +02:00
icinga2-install.html \
icinga2-intro.html \
2013-08-14 13:46:13 +02:00
icinga2-tutorial.html \
icinga2-main.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)
2013-08-14 15:19:45 +02:00
clean:
rm -f $(icinga2doc_DATA)
distclean:
2013-02-05 16:35:22 +01:00
rm -f $(icinga2doc_DATA)