From d0ac7d75a31057896a2af45a6ac76f308eab3867 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Sat, 19 Mar 2022 12:25:25 +0530 Subject: [PATCH] Makefile: fix samples/c build dependency If the user chooses to build the samples/c programs, it will fail to build, with the error: config.status: creating samples/c/Makefile CC setuid.o make: *** No rule to make target '../../src/.libs/libcgroup.la', needed by 'setuid'. Stop. it is due to the dependency on libcgroup.la, which is currently built after samples. Fix it by moving the samples directory to be built after src directory. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 4fcd68b5..b7e3c67d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ AUTOMAKE_OPTIONS = foreign ACLOCAL_AMFLAGS= -I m4 -SUBDIRS = dist doc include samples scripts src tests +SUBDIRS = dist doc include scripts src tests samples EXTRA_DIST = README_daemon libcgroup.doxyfile README_systemd CONTRIBUTING.md -- 2.47.2