Add "make cleaner" and "make spotless"
authorH. Peter Anvin <hpa@zytor.com>
Fri, 11 Jan 2008 03:44:06 +0000 (19:44 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 11 Jan 2008 03:45:30 +0000 (19:45 -0800)
Makefile

index cba6b3d..c6f7b12 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,13 @@ wraplinux: main.o linux.o reloc.o elf.o nbi.o segment.o mapfile.o xmalloc.o
 clean:
        rm -f wraplinux *.o reloc/*.o reloc/*.bin reloc/*.elf
 
+cleaner: clean
+       rm -rf MCONFIG config.h *.cache config.status config.log
+
+spotless: cleaner
+       rm -rf configure config.h.in
+       find . -name '*~' -print0 | xargs -0rt rm -f
+
 #
 # Autoconf
 #