[svn:ponie] rev 310 - trunk
[email protected] 8 Jul 2005 11:26:38 -0000
| Newsgroups | perl.ponie.changes |
|---|---|
| Message-ID | <[email protected]> |
Author: nicholas
Date: Fri Jul 8 04:26:36 2005
New Revision: 310
Modified:
trunk/write_makefile.pl
Log:
I want a clean target.
Modified: trunk/write_makefile.pl
==============================================================================
--- trunk/write_makefile.pl (original)
+++ trunk/write_makefile.pl Fri Jul 8 04:26:36 2005
@@ -59,6 +59,7 @@ perl5pmcs.h: perl5pmcs.c
EOM
+my (@allcs, @allhs);
foreach (@allPMCs) {
my $pmc = lc "$_.pmc";
my $dump = lc "$_.dump";
@@ -75,8 +76,22 @@ $c $h: $dump
$o: $c
EOSNIP
+
+ push @allcs, $c;
+ push @allhs, $h;
}
+my $allcs = join " ", @allcs;
+my $allhs = join " ", @allhs;
+
+print <<"EOM";
+clean:
+ rm -f perl5pmcs.c perl5pmcs.h \\
+ $allobjs \\
+ $alldumps \\
+ $allhs \\
+ $allcs
+EOM
# Wah. We need to build the dump files in the correct order.
my %deps;