summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:46:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:46:09 +0000
commit043aa641ad4373e96fd748deb1e7fab3cb579a07 (patch)
treef8fde8a97ab5db152043f6c01043672114c0a4df /Makefile.am
parentReleasing progress-linux version 2.1.6-5~progress7.99u1. (diff)
downloadpacemaker-043aa641ad4373e96fd748deb1e7fab3cb579a07.tar.xz
pacemaker-043aa641ad4373e96fd748deb1e7fab3cb579a07.zip
Merging upstream version 2.1.7.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am71
1 files changed, 48 insertions, 23 deletions
diff --git a/Makefile.am b/Makefile.am
index fd9db82..c3e39b9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -10,31 +10,31 @@
# This directory must be same as in configure.ac's AC_CONFIG_MACRO_DIR
ACLOCAL_AMFLAGS = -I m4
-EXTRA_DIST = CONTRIBUTING.md \
- GNUmakefile \
- INSTALL.md \
- README.markdown \
- autogen.sh \
+EXTRA_DIST = CONTRIBUTING.md \
+ GNUmakefile \
+ INSTALL.md \
+ README.markdown \
+ autogen.sh \
m4/CC_CHECK_LDFLAGS.m4 \
m4/CHECK_ENUM_VALUE.m4 \
- m4/gnulib-cache.m4 \
- m4/gnulib-tool.m4 \
- m4/PKG_CHECK_VAR.m4 \
- m4/REQUIRE_HEADER.m4 \
+ m4/gnulib-cache.m4 \
+ m4/gnulib-tool.m4 \
+ m4/PKG_CHECK_VAR.m4 \
+ m4/REQUIRE_HEADER.m4 \
m4/version.m4
DISTCLEANFILES = config.status
-MAINTAINERCLEANFILES = Makefile.in \
- aclocal.m4 \
- config.guess \
- config.sub \
- configure \
- depcomp \
- install-sh \
- ltmain.sh \
- missing \
- py-compile \
+MAINTAINERCLEANFILES = Makefile.in \
+ aclocal.m4 \
+ config.guess \
+ config.sub \
+ configure \
+ depcomp \
+ install-sh \
+ ltmain.sh \
+ missing \
+ py-compile \
test-driver
# Don't try to install files outside build directory for "make distcheck".
@@ -45,13 +45,28 @@ AM_DISTCHECK_CONFIGURE_FLAGS = --prefix="$$dc_install_base/usr" \
--with-systemdsystemunitdir="$$dc_install_base$(systemdsystemunitdir)"
# Only these will get built with a plain "make"
-CORE = replace include lib daemons tools xml po python cts rpm
-
-SUBDIRS = $(CORE) agents devel doc etc maint tests
+CORE = include \
+ lib \
+ daemons \
+ tools \
+ xml \
+ po \
+ python \
+ cts \
+ rpm
+
+SUBDIRS = $(CORE) \
+ agents \
+ devel \
+ doc \
+ etc \
+ maint \
+ tests
AM_CPPFLAGS = -I$(top_srcdir)/include
-doc_DATA = README.markdown COPYING
+doc_DATA = README.markdown \
+ COPYING
licensedir = $(docdir)/licenses/
dist_license_DATA = $(wildcard licenses/*)
@@ -67,6 +82,7 @@ DAEMON_R_DIRS = $(CRM_CONFIG_DIR) \
DAEMON_RW_DIRS = $(CRM_BUNDLE_DIR) \
$(CRM_LOG_DIR)
+.PHONY: core
core:
@echo "Building only core components and tests: $(CORE)"
@for subdir in $(CORE); do \
@@ -74,6 +90,7 @@ core:
$(MAKE) $(AM_MAKEFLAGS) -C $$subdir all || exit 1; \
done
+.PHONY: core-clean
core-clean:
@echo "Cleaning only core components and tests: $(CORE)"
@for subdir in $(CORE); do \
@@ -81,6 +98,7 @@ core-clean:
$(MAKE) $(AM_MAKEFLAGS) -C $$subdir clean || exit 1; \
done
+.PHONY: install-exec-local
install-exec-local:
for DIR in $(ROOT_DIRS) $(DAEMON_R_DIRS); do \
$(INSTALL) -d -m 750 "$(DESTDIR)/$$DIR"; \
@@ -96,18 +114,25 @@ install-exec-local:
done
# Remove created directories only if they're empty
+.PHONY: uninstall-hook
uninstall-hook:
-for DIR in $(ROOT_DIRS) $(DAEMON_R_DIRS) $(DAEMON_RW_DIRS); do \
rmdir "$(DESTDIR)/$$DIR"; \
done
+.PHONY: clean-generic
clean-generic:
-rm -f *.tar.bz2 *.sed
PACKAGE ?= pacemaker
+.PHONY: clean-local
clean-local:
-rm -f $(builddir)/$(PACKAGE)-*.tar.gz
+ -if [ "x$(top_srcdir)" != "x$(top_builddir)" ]; then \
+ rm -rf $(top_builddir)/python; \
+ fi
+.PHONY: distclean-local
distclean-local:
-rm -rf libltdl autom4te.cache