2012-03-28 13:24:49 +02:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
## Created by Anjuta
|
|
|
|
|
2012-04-01 09:48:52 +02:00
|
|
|
SUBDIRS = ltdl \
|
|
|
|
base \
|
2012-04-06 08:56:52 +02:00
|
|
|
cJSON \
|
2012-04-01 09:48:52 +02:00
|
|
|
jsonrpc \
|
2012-04-13 11:45:09 +02:00
|
|
|
icinga \
|
|
|
|
icinga-app \
|
2012-04-13 13:16:54 +02:00
|
|
|
components
|
2012-03-28 13:24:49 +02:00
|
|
|
|
|
|
|
icinga2docdir = ${prefix}/doc/icinga2
|
|
|
|
icinga2doc_DATA = \
|
|
|
|
README\
|
|
|
|
COPYING\
|
|
|
|
AUTHORS\
|
|
|
|
ChangeLog\
|
|
|
|
INSTALL\
|
|
|
|
NEWS
|
|
|
|
|
|
|
|
|
2012-04-02 10:29:08 +02:00
|
|
|
EXTRA_DIST = $(icinga2doc_DATA) git_version.sh
|
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
|