icinga2/Makefile.am

84 lines
1.7 KiB
Makefile

## Process this file with automake to produce Makefile.in
## Created by Anjuta
include aminclude.am
SUBDIRS = \
third-party \
lib \
components \
icinga-app \
test \
itl \
etc \
docs
#doc
icinga2docdir = ${docdir}
icinga2doc_DATA = \
README \
COPYING \
COPYING.Exceptions \
AUTHORS \
ChangeLog \
INSTALL \
NEWS
#log
icinga2logdir = ${localstatedir}/log/${PACKAGE}
icinga2log_DATA =
#cache
icinga2cachedir = ${localstatedir}/cache/${PACKAGE}
icinga2cache_DATA =
#variablestate
icinga2varstatedir = ${localstatedir}/lib/${PACKAGE}
icinga2varstate_DATA =
#run
icinga2rundir = ${localstatedir}/run/${PACKAGE}
icinga2run_DATA =
#bin
icinga2sbindir = ${sbindir}
icinga2sbin_DATA =
#lib
icinga2libdir = ${libdir}/${PACKAGE}
icinga2lib_DATA =
EXTRA_DIST = $(icinga2doc_DATA) git_version.sh icinga2.spec
# Remove doc directory on uninstall
uninstall-local:
-rm -r $(icinga2docdir)
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"; \
fi