summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2012-07-20 15:16:32 +0300
committerPaul Moore <pmoore@redhat.com>2012-07-20 16:08:17 -0400
commit0db9f9b5015b8a34324667dfa9f42a1f92a86159 (patch)
treea2e8cd9cbbe357f54080ed485f056549a3a83cf8
parent481c1501b64721591bb7073a078c4020143bef58 (diff)
downloadlibseccomp-release-0.1.tar.gz
build: fixed target dependency issuesrelease-0.1
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 <thiago.santos@intel.com> Signed-off-by: Paul Moore <pmoore@redhat.com>
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
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 $@