From: Tom Hromatka Date: Fri, 18 Mar 2022 13:53:58 +0000 (-0600) Subject: Makefile.am: Add support for make distcheck X-Git-Tag: v3.0~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75efc065af40b153c9ff5c3fc92691a87ffec617;p=thirdparty%2Flibcgroup.git 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 --- 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