chiark / gitweb /
make TARGETS make :: rules
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 13 Nov 2019 16:51:53 +0000 (16:51 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 13 Nov 2019 16:52:06 +0000 (16:52 +0000)
subdirmk/clean.sd.mk
subdirmk/generate

index accb2f5..017de63 100644 (file)
@@ -5,5 +5,5 @@
 
 # &TARGETS_clean
 
-&/clean:
+&/clean::
        $(RM) $(&CLEAN)
index 4b303bb..8abc040 100755 (executable)
@@ -241,7 +241,7 @@ sub process_subtree ($$) {
     my @targets = sort keys %targets;
     foreach my $target (@targets) {
        my $target_varname = target_varname($var_prefix, $target);
-       print O "${dir_prefix}${target}: \$($target_varname)";
+       print O "${dir_prefix}${target}:: \$($target_varname)";
        foreach my $child_subdir (@{ $targets{$target} }) {
            print O " $child_subdir/$target";
        }