From d59b94d72143a58eac59537847bff7b6aad10cd5 Mon Sep 17 00:00:00 2001 From: hpa Date: Thu, 26 Jul 2001 22:39:32 +0000 Subject: [PATCH] "make distclean" -> delete all files not for release "make spotless" -> delete all non-generated files --- Makefile | 9 ++++++--- lib/Makefile | 2 +- tftp/Makefile | 2 +- tftpd/Makefile | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index b88f3c0..c5ed735 100644 --- a/Makefile +++ b/Makefile @@ -12,8 +12,8 @@ SUB = lib tftp tftpd %.clean: $(MAKE) -C $(patsubst %.clean, %, $@) clean -%.spotless: - $(MAKE) -C $(patsubst %.spotless, %, $@) spotless +%.distclean: + $(MAKE) -C $(patsubst %.distclean, %, $@) distclean all: MCONFIG $(patsubst %, %.build, $(SUB)) @@ -21,10 +21,13 @@ install: MCONFIG $(patsubst %, %.install, $(SUB)) clean: $(patsubst %, %.clean, $(SUB)) -spotless: $(patsubst %, %.spotless, $(SUB)) +distclean: $(patsubst %, %.distclean, $(SUB)) rm -f MCONFIG config.cache config.log config.h *~ \#* find . -type f \( -name \*.orig -o -name \*.rej \) | xargs -r rm -f +spotless: distclean + rm -f configure + config: MCONFIG MCONFIG: configure MCONFIG.in config.h.in diff --git a/lib/Makefile b/lib/Makefile index fb56fa7..e1de2ef 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -12,7 +12,7 @@ install: clean: -rm -f *.a *.o -spotless: clean +distclean: clean -rm -f *~ libxtra.a: $(LIBOBJS) diff --git a/tftp/Makefile b/tftp/Makefile index e7e94c8..1aea498 100644 --- a/tftp/Makefile +++ b/tftp/Makefile @@ -17,5 +17,5 @@ install: tftp clean: rm -f *.o tftp -spotless: clean +distclean: clean rm -f *~ diff --git a/tftpd/Makefile b/tftpd/Makefile index 04aeaf4..be2720e 100644 --- a/tftpd/Makefile +++ b/tftpd/Makefile @@ -23,5 +23,5 @@ install: tftpd clean: rm -f *.o tftpd tftpsubs.c tftpsubs.h -spotless: clean +distclean: clean rm -f *~