1 ## Process this file with automake to produce Makefile.in
18 icinga2docdir = ${docdir}
29 $(MKDIR_P) ${localstatedir}/log/${PACKAGE}/compat/archives
30 $(MKDIR_P) ${localstatedir}/cache/${PACKAGE}
31 $(MKDIR_P) ${localstatedir}/lib/${PACKAGE}
32 $(MKDIR_P) ${localstatedir}/run/${PACKAGE}
34 EXTRA_DIST = $(icinga2doc_DATA) git_version.sh icinga2.spec
37 # Remove doc directory on uninstall
39 -rm -r $(icinga2docdir)
41 BUILT_SOURCES = icinga-version.stamp
42 CLEANFILES = icinga-version.h
43 GIT_VERSION_CMD = $(SHELL) $(top_srcdir)/git_version.sh
45 @if test -f "$(srcdir)/icinga-version.h"; then \
46 if test -f "icinga-version.h"; then :; \
48 cp "$(srcdir)/icinga-version.h" "icinga-version.h"; \
51 $(GIT_VERSION_CMD) -k -s $(top_srcdir) -o icinga-version.h
52 @if test -s "$(srcdir)/icinga-version.h"; then \
53 if cmp "$(srcdir)/icinga-version.h" "icinga-version.h"; then :; \
55 echo "Error: $(srcdir)/icinga-version.h and icinga-version.h differ."; \
56 echo " You probably want to remove the former."; \
61 dist-hook: icinga-version.stamp
62 if test -f "icinga-version.h"; then \
63 $(SED) -e 's|^#undef GIT_IS_DIST.*|#define GIT_IS_DIST 1|' \
64 "icinga-version.h" > "$(distdir)/icinga-version.h"; \
70 lcov -d . -c -o icinga2.info
71 lcov -e icinga2.info -o icinga2-filtered.info "`readlink -f $(top_srcdir)`/*"
73 genhtml -o docs/lcov icinga2-filtered.info