mtd/drivers/mtd GNUmakefile,1.15,1.16

David Woodhouse dwmw2 at infradead.org
Wed May 28 06:00:47 EDT 2003


Update of /home/cvs/mtd/drivers/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv27842

Modified Files:
	GNUmakefile 
Log Message:
Add extra removals to 'clean' target, add veryclean target


Index: GNUmakefile
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/GNUmakefile,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- GNUmakefile	21 May 2003 15:00:00 -0000	1.15
+++ GNUmakefile	28 May 2003 10:00:43 -0000	1.16
@@ -16,8 +16,13 @@
 	make -C $(LINUXDIR) SUBDIRS=`pwd` mtd=`pwd` dep
 
 clean:
-	rm -f `find . -name \*.ko` `find . -name \*.o`
+	rm -f `find . -name \*.o -o -name \*.mod.c -o -name \*.ko`
 
+veryclean:
+	for a in `find . -type f  -a \! -path \*/CVS/\*` ; do  \
+		grep -q ^/`basename $$a`/ `dirname $$a`/CVS/Entries ||  \
+			rm -v $$a ; \
+	done 
 else
 
 # 2.5 explicitly states <subdir>/Makefile rather than using recursive make,




More information about the linux-mtd-cvs mailing list