"make distclean" -> delete all files not for release

"make spotless"		-> delete all non-generated files
This commit is contained in:
hpa 2001-07-26 22:39:32 +00:00
parent b98d08b5d4
commit d59b94d721
4 changed files with 9 additions and 6 deletions

View file

@ -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

View file

@ -12,7 +12,7 @@ install:
clean:
-rm -f *.a *.o
spotless: clean
distclean: clean
-rm -f *~
libxtra.a: $(LIBOBJS)

View file

@ -17,5 +17,5 @@ install: tftp
clean:
rm -f *.o tftp
spotless: clean
distclean: clean
rm -f *~

View file

@ -23,5 +23,5 @@ install: tftpd
clean:
rm -f *.o tftpd tftpsubs.c tftpsubs.h
spotless: clean
distclean: clean
rm -f *~