From: Kamalesh Babulal Date: Wed, 24 May 2023 06:56:39 +0000 (+0000) Subject: samples/create_systemd_scope: build when systemd is enabled X-Git-Tag: v3.1.0~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72438c0cd5ffaed56bb3e177b236d0ac636f6075;p=thirdparty%2Flibcgroup.git samples/create_systemd_scope: build when systemd is enabled create_systemd_scope sample program depends on the systemd support to be build, and add the dependency in the Makefile. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- diff --git a/samples/c/Makefile.am b/samples/c/Makefile.am index 444ca545..32b3e8b1 100644 --- a/samples/c/Makefile.am +++ b/samples/c/Makefile.am @@ -7,7 +7,11 @@ noinst_PROGRAMS = setuid walk_test read_stats walk_task get_controller \ get_mount_point proctest get_all_controller \ get_variable_names test_named_hierarchy \ get_procs wrapper_test logger empty_cgroup_v2 \ - get_setup_mode create_systemd_scope + get_setup_mode + +if WITH_SYSTEMD +noinst_PROGRAMS += create_systemd_scope +endif setuid_SOURCES=setuid.c walk_test_SOURCES=walk_test.c