forked from mirrors/tftp-hpa-google
"make distclean" -> delete all files not for release
"make spotless" -> delete all non-generated files
This commit is contained in:
parent
b98d08b5d4
commit
d59b94d721
4 changed files with 9 additions and 6 deletions
9
Makefile
9
Makefile
|
@ -12,8 +12,8 @@ SUB = lib tftp tftpd
|
||||||
%.clean:
|
%.clean:
|
||||||
$(MAKE) -C $(patsubst %.clean, %, $@) clean
|
$(MAKE) -C $(patsubst %.clean, %, $@) clean
|
||||||
|
|
||||||
%.spotless:
|
%.distclean:
|
||||||
$(MAKE) -C $(patsubst %.spotless, %, $@) spotless
|
$(MAKE) -C $(patsubst %.distclean, %, $@) distclean
|
||||||
|
|
||||||
all: MCONFIG $(patsubst %, %.build, $(SUB))
|
all: MCONFIG $(patsubst %, %.build, $(SUB))
|
||||||
|
|
||||||
|
@ -21,10 +21,13 @@ install: MCONFIG $(patsubst %, %.install, $(SUB))
|
||||||
|
|
||||||
clean: $(patsubst %, %.clean, $(SUB))
|
clean: $(patsubst %, %.clean, $(SUB))
|
||||||
|
|
||||||
spotless: $(patsubst %, %.spotless, $(SUB))
|
distclean: $(patsubst %, %.distclean, $(SUB))
|
||||||
rm -f MCONFIG config.cache config.log config.h *~ \#*
|
rm -f MCONFIG config.cache config.log config.h *~ \#*
|
||||||
find . -type f \( -name \*.orig -o -name \*.rej \) | xargs -r rm -f
|
find . -type f \( -name \*.orig -o -name \*.rej \) | xargs -r rm -f
|
||||||
|
|
||||||
|
spotless: distclean
|
||||||
|
rm -f configure
|
||||||
|
|
||||||
config: MCONFIG
|
config: MCONFIG
|
||||||
|
|
||||||
MCONFIG: configure MCONFIG.in config.h.in
|
MCONFIG: configure MCONFIG.in config.h.in
|
||||||
|
|
|
@ -12,7 +12,7 @@ install:
|
||||||
clean:
|
clean:
|
||||||
-rm -f *.a *.o
|
-rm -f *.a *.o
|
||||||
|
|
||||||
spotless: clean
|
distclean: clean
|
||||||
-rm -f *~
|
-rm -f *~
|
||||||
|
|
||||||
libxtra.a: $(LIBOBJS)
|
libxtra.a: $(LIBOBJS)
|
||||||
|
|
|
@ -17,5 +17,5 @@ install: tftp
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o tftp
|
rm -f *.o tftp
|
||||||
|
|
||||||
spotless: clean
|
distclean: clean
|
||||||
rm -f *~
|
rm -f *~
|
||||||
|
|
|
@ -23,5 +23,5 @@ install: tftpd
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o tftpd tftpsubs.c tftpsubs.h
|
rm -f *.o tftpd tftpsubs.c tftpsubs.h
|
||||||
|
|
||||||
spotless: clean
|
distclean: clean
|
||||||
rm -f *~
|
rm -f *~
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue