2012-03-28 13:24:49 +02:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
## Created by Anjuta
|
|
|
|
|
2012-05-18 11:31:55 +02:00
|
|
|
include aminclude.am
|
|
|
|
|
2012-05-25 22:04:03 +02:00
|
|
|
SUBDIRS = \
|
2012-05-29 11:38:51 +02:00
|
|
|
third-party \
|
2013-03-12 13:45:54 +01:00
|
|
|
tools \
|
2012-09-07 10:27:31 +02:00
|
|
|
lib \
|
2012-05-12 16:12:26 +02:00
|
|
|
components \
|
2012-05-28 11:53:51 +02:00
|
|
|
icinga-app \
|
2013-02-01 11:39:06 +01:00
|
|
|
test \
|
2013-02-04 12:43:16 +01:00
|
|
|
itl \
|
2013-02-05 16:30:34 +01:00
|
|
|
etc \
|
|
|
|
docs
|
|
|
|
|
2012-10-02 14:44:22 +02:00
|
|
|
#doc
|
|
|
|
icinga2docdir = ${docdir}
|
2012-03-28 13:24:49 +02:00
|
|
|
icinga2doc_DATA = \
|
2012-05-10 12:06:41 +02:00
|
|
|
README \
|
|
|
|
COPYING \
|
|
|
|
COPYING.Exceptions \
|
|
|
|
AUTHORS \
|
|
|
|
ChangeLog \
|
|
|
|
INSTALL \
|
2012-03-28 13:24:49 +02:00
|
|
|
NEWS
|
|
|
|
|
2013-03-12 09:58:27 +01:00
|
|
|
install-data-local:
|
2013-03-19 13:04:30 +01:00
|
|
|
$(MKDIR_P) ${localstatedir}/log/${PACKAGE}/compat/archives
|
2013-03-12 09:58:27 +01:00
|
|
|
$(MKDIR_P) ${localstatedir}/cache/${PACKAGE}
|
|
|
|
$(MKDIR_P) ${localstatedir}/lib/${PACKAGE}
|
|
|
|
$(MKDIR_P) ${localstatedir}/run/${PACKAGE}
|
2012-03-28 13:24:49 +02:00
|
|
|
|
2012-10-02 17:57:28 +02:00
|
|
|
EXTRA_DIST = $(icinga2doc_DATA) git_version.sh icinga2.spec
|
2012-03-28 13:24:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Remove doc directory on uninstall
|
|
|
|
uninstall-local:
|
|
|
|
-rm -r $(icinga2docdir)
|
2012-04-01 19:45:30 +02:00
|
|
|
|
|
|
|
BUILT_SOURCES = icinga-version.stamp
|
|
|
|
CLEANFILES = icinga-version.h
|
|
|
|
GIT_VERSION_CMD = $(SHELL) $(top_srcdir)/git_version.sh
|
|
|
|
icinga-version.stamp:
|
|
|
|
@if test -f "$(srcdir)/icinga-version.h"; then \
|
|
|
|
if test -f "icinga-version.h"; then :; \
|
|
|
|
else \
|
|
|
|
cp "$(srcdir)/icinga-version.h" "icinga-version.h"; \
|
|
|
|
fi; \
|
|
|
|
fi
|
|
|
|
$(GIT_VERSION_CMD) -k -s $(top_srcdir) -o icinga-version.h
|
|
|
|
@if test -s "$(srcdir)/icinga-version.h"; then \
|
|
|
|
if cmp "$(srcdir)/icinga-version.h" "icinga-version.h"; then :; \
|
|
|
|
else \
|
|
|
|
echo "Error: $(srcdir)/icinga-version.h and icinga-version.h differ."; \
|
|
|
|
echo " You probably want to remove the former."; \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
dist-hook: icinga-version.stamp
|
|
|
|
if test -f "icinga-version.h"; then \
|
|
|
|
$(SED) -e 's|^#undef GIT_IS_DIST.*|#define GIT_IS_DIST 1|' \
|
|
|
|
"icinga-version.h" > "$(distdir)/icinga-version.h"; \
|
2012-04-13 11:32:19 +02:00
|
|
|
fi
|
2013-04-19 11:27:18 +02:00
|
|
|
|
2013-04-19 13:09:24 +02:00
|
|
|
check-coverage: all
|
2013-04-19 11:27:18 +02:00
|
|
|
lcov -d . -z
|
|
|
|
make check
|
|
|
|
lcov -d . -c -o icinga2.info
|
|
|
|
lcov -e icinga2.info -o icinga2-filtered.info `pwd`\*
|
|
|
|
mkdir -p docs/lcov
|
|
|
|
genhtml -o docs/lcov icinga2-filtered.info
|
|
|
|
|