diff options
| author | Michael E Brown <mebrown@michaels-house.net> | 2007-06-12 22:46:12 -0500 |
|---|---|---|
| committer | Michael E Brown <mebrown@michaels-house.net> | 2007-06-12 22:46:12 -0500 |
| commit | 63279637c19a6092981fadee992c319f2eb8a409 (patch) | |
| tree | b49937ca4fd481cd10a84c7f959c0b71452669c3 | |
| parent | cbd9fa194725e8ae58e89df91922b5d3ee4927b5 (diff) | |
| download | mock-63279637c19a6092981fadee992c319f2eb8a409.tar.gz mock-63279637c19a6092981fadee992c319f2eb8a409.tar.xz mock-63279637c19a6092981fadee992c319f2eb8a409.zip | |
Adds SUBDIRS to the make 'distclean' target and 'distclean' to the
sub-directory Makefiles.
Patch from Ken MacLeod <ken@bitsko.slc.ut.us>
signed-off-by: Michael Brown <mebrown@michaels-house.net>
| -rw-r--r-- | Makefile | 3 | ||||
| -rw-r--r-- | docs/Makefile | 2 | ||||
| -rw-r--r-- | etc/Makefile | 2 | ||||
| -rw-r--r-- | src/Makefile | 2 |
4 files changed, 8 insertions, 1 deletions
@@ -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 |
