winemaker: distclean target

Francois Gouget fgouget at codeweavers.com
Thu Sep 26 19:23:38 CDT 2002


Now that the big patch is in, here are some smaller bits and pieces.

Changelog:

    Francois Gouget <fgouget at codeweavers.com>

  * tools/winemaker

    Add a 'distclean' target
    Only the toplevel Makefile needs a 'clean' target


-- 
Francois Gouget
fgouget at codeweavers.com

-------------- next part --------------
Index: tools/winemaker
===================================================================
RCS file: /home/wine/wine/tools/winemaker,v
retrieving revision 1.54
diff -u -r1.54 winemaker
--- tools/winemaker	26 Sep 2002 03:20:59 -0000	1.54
+++ tools/winemaker	26 Sep 2002 21:26:32 -0000
@@ -1881,15 +1881,16 @@
     print FILEO "\t_list=\"$(EXES:%=%.so) \$(DLLS:%=%.so)\"; for i in \$\$_list; do \$(RM) \$(dlldir)/\$\$i;done\n";
   }
   print FILEO "\n";
-  print FILEO "clean::\n";
-  print FILEO "\t\$(RM)";
   if (@$project[$P_PATH] eq "") {
-      print FILEO " wineapploader";
-  }
-  if (@{@$project[$P_TARGETS]} > 0) {
-      print FILEO " \$(EXES)";
+      print FILEO "clean::\n";
+      print FILEO "\t\$(RM) wineapploader\n";
+      print FILEO "\n";
+      print FILEO "distclean: clean\n";
+      print FILEO "\t\$(RM) config.* Make.rules\n";
+      print FILEO "\t\$(RM) -r autom4te.cache\n";
+      print FILEO "\tfind . -name Makefile -exec \$(RM) {} \\;\n";
+      print FILEO "\n";
   }
-  print FILEO "\n\n";
 
   if (@{@$project[$P_TARGETS]} > 0) {
     print FILEO "### Target specific build rules\n\n";


More information about the wine-patches mailing list