]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
Makefile: fix samples/c build dependency
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Sat, 19 Mar 2022 06:55:25 +0000 (12:25 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 21 Mar 2022 14:14:52 +0000 (08:14 -0600)
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 <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Makefile.am

index 4fcd68b5f169e5ed8f8cecdb65892d41d8f3aee5..b7e3c67d226c6e1f9304de94619d4b723dfb3a22 100644 (file)
@@ -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