]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
Makefile.am: Add support for make distcheck
authorTom Hromatka <tom.hromatka@oracle.com>
Fri, 18 Mar 2022 13:53:58 +0000 (07:53 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 24 Mar 2022 13:45:34 +0000 (07:45 -0600)
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 <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Makefile.am
src/python/Makefile.am

index b7e3c67d226c6e1f9304de94619d4b723dfb3a22..5117543dae1a3bb5bb71e48558de4e137c8134db 100644 (file)
@@ -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
index 6668afe0996c6b8856b89230450ad899c7032a75..0683d00d67779f3aa5b3513d5179f157e7cc171f 100644 (file)
@@ -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