Added better 'make clean' rule.
[cocanwiki.git] / Makefile
index 3a25958..0229861 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.2 2004/09/07 10:38:38 rich Exp $
+# $Id: Makefile,v 1.3 2004/09/08 17:09:08 rich Exp $
 
 include Makefile.config
 
@@ -40,7 +40,7 @@ pkg-install:
        install -m 0644 templates/*.html $(DESTDIR)$(WIKIINSTALLDIR)/templates
 
 clean:
-       rm -f *~ core
+       find \( -name '*~' -o -name core \) -a -exec rm {} \;
        $(MAKE) -C scripts clean
 
 cocanwiki.sql: