From 0db9f9b5015b8a34324667dfa9f42a1f92a86159 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Fri, 20 Jul 2012 15:16:32 +0300 Subject: build: fixed target dependency issues The tests and tools targets depend on libraries generated by the src target. Adding as dependency at the Makefile inside these respective folders is not enough since libseccomp uses recursive make. Signed-off-by: Thiago Marcos P. Santos Signed-off-by: Paul Moore --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 60bce3d..b54f4c9 100644 --- a/Makefile +++ b/Makefile @@ -71,7 +71,15 @@ $(VERSION_HDR): version_info.mk echo "#define VERSION_RELEASE \"$(VERSION_RELEASE)\"" >> $$hdr; \ echo "#endif" >> $$hdr; -$(SUBDIRS_BUILD): $(VERSION_HDR) $(CONFIGS) +src: $(VERSION_HDR) $(CONFIGS) + @echo "INFO: building in directory $@/ ..." + @$(MAKE) -s -C $@ + +tests: src + @echo "INFO: building in directory $@/ ..." + @$(MAKE) -s -C $@ + +tools: src @echo "INFO: building in directory $@/ ..." @$(MAKE) -s -C $@ -- cgit v1.2.1