From b411c57b0e05ed569a8d6fb4ee5e53a51d696a0f Mon Sep 17 00:00:00 2001 From: Paul Moore Date: Mon, 7 Oct 2013 15:54:25 -0400 Subject: build: fixup the "clean" portions of the build process Reported-by: Kees Cook Signed-off-by: Paul Moore --- Makefile | 2 +- src/Makefile | 4 ++-- tests/Makefile | 2 +- 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 -- cgit v1.2.1