summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Moore <pmoore@redhat.com>2013-10-07 15:54:25 -0400
committerPaul Moore <pmoore@redhat.com>2013-10-17 12:05:11 -0400
commitb411c57b0e05ed569a8d6fb4ee5e53a51d696a0f (patch)
tree0f739d074df18857305094615c2546c924236bdd
parent15752e8cf4eb95e463e496de44e005a8b6b24ca8 (diff)
downloadlibseccomp-b411c57b0e05ed569a8d6fb4ee5e53a51d696a0f.tar.gz
build: fixup the "clean" portions of the build process
Reported-by: Kees Cook <keescook@chromium.org> Signed-off-by: Paul Moore <pmoore@redhat.com>
-rw-r--r--Makefile2
-rw-r--r--src/Makefile4
-rw-r--r--tests/Makefile2
3 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 6fcae19..71a2133 100644
--- a/Makefile
+++ b/Makefile
@@ -49,7 +49,7 @@ $(CONFIGS): version_info
@$(ECHO_INFO) "automatically generating configuration ..."
@./configure
-tarball: clean
+tarball: dist-clean
@ver=$(VERSION_RELEASE); \
tarball=libseccomp-$$ver.tar.gz; \
$(ECHO_INFO) "creating the tarball ../$$tarball"; \
diff --git a/src/Makefile b/src/Makefile
index ae50f86..7b980ab 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -85,8 +85,8 @@ install: $(LIB_SHARED)
done
clean:
- $(RM) $(DEPS) $(OBJS) $(LIB_STATIC) $(LIB_SHARED)
- @for dir in $(BINDINGS); do \
+ $(RM) $(DEPS) $(OBJS) $(LIB_STATIC) libseccomp.so.*
+ @for dir in python; do \
$(MAKE) -C $$dir clean; \
done
diff --git a/tests/Makefile b/tests/Makefile
index adb5820..1bc8d65 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -89,4 +89,4 @@ $(TEST_PRIVATE): 00-test.c $(OBJS) ../src/libseccomp.a
$(COMPILE_EXEC)
clean:
- $(RM) $(DEPS_TESTS) $(DEPS_OBJS) $(TESTS) $(TEST_PRIVATE) $(OBJS)
+ $(RM) $(DEPS_TESTS) $(DEPS_OBJS) $(TESTS) $(TEST_PRIVATE) $(OBJS) *.pyc