From 75efc065af40b153c9ff5c3fc92691a87ffec617 Mon Sep 17 00:00:00 2001 From: Tom Hromatka Date: Fri, 18 Mar 2022 07:53:58 -0600 Subject: [PATCH] Makefile.am: Add support for make distcheck Add support for `make distcheck`. Provide the requisite ./configure options during the build and clean up Python build artifacts afterwards. Signed-off-by: Tom Hromatka Reviewed-by: Kamalesh Babulal --- Makefile.am | 4 ++++ src/python/Makefile.am | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index b7e3c67d..5117543d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,5 +4,9 @@ SUBDIRS = dist doc include scripts src tests samples EXTRA_DIST = README_daemon libcgroup.doxyfile README_systemd CONTRIBUTING.md +AM_DISTCHECK_CONFIGURE_FLAGS = --sysconfdir=/etc --localstatedir=/var \ + --enable-opaque-hierarchy="name=systemd" \ + --enable-python + pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libcgroup.pc diff --git a/src/python/Makefile.am b/src/python/Makefile.am index 6668afe0..0683d00d 100644 --- a/src/python/Makefile.am +++ b/src/python/Makefile.am @@ -40,4 +40,4 @@ uninstall-local: clean-local: [ ${srcdir} == ${builddir} ] || ${RM} -f ${builddir}/libcgroup.pyx - ${RM} -rf libcgroup.c build + ${RM} -rf libcgroup.c build libcgroup.egg-info dist -- 2.47.2