From 63279637c19a6092981fadee992c319f2eb8a409 Mon Sep 17 00:00:00 2001 From: Michael E Brown Date: Tue, 12 Jun 2007 22:46:12 -0500 Subject: Adds SUBDIRS to the make 'distclean' target and 'distclean' to the sub-directory Makefiles. Patch from Ken MacLeod signed-off-by: Michael Brown --- Makefile | 3 ++- docs/Makefile | 2 ++ etc/Makefile | 2 ++ src/Makefile | 2 ++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4378a9e..2e002f1 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,8 @@ clean: distclean: clean rm -rf dist build - rm *.tar.gz + rm -f *.tar.gz + for d in $(SUBDIRS); do make -C $$d distclean ; done subdirs: for d in $(SUBDIRS); do make -C $$d; [ $$? = 0 ] || exit 1 ; done diff --git a/docs/Makefile b/docs/Makefile index 515cddb..0ebb642 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -4,6 +4,8 @@ all: clean: rm -f *.pyc *.pyo *~ +distclean: clean + install: mkdir -p $(DESTDIR)/usr/share/man/man1 install -m 644 mock.1 $(DESTDIR)/usr/share/man/man1/mock.1 diff --git a/etc/Makefile b/etc/Makefile index 491d8f2..a1d6a9f 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -4,6 +4,8 @@ all: clean: rm -f *.bak *~ +distclean: clean + install: mkdir -p $(DESTDIR)/etc/mock/ for item in *.cfg; do \ diff --git a/src/Makefile b/src/Makefile index 436d2cc..c98de15 100644 --- a/src/Makefile +++ b/src/Makefile @@ -29,6 +29,8 @@ selinux-mock.o: selinux-mock.c $(EXECUTABLE): $(EXECUTABLE).c $(CC) $(CFLAGS) $(DEBUG) -o $@ $< +distclean: clean + clean: rm -f $(EXECUTABLE) $(LIBRARY) rm -f *~ *.bak *.o *.so -- cgit