chiark / gitweb /
Merge from secnet
[subdirmk.git] / generate
index 32c6fbf..9275b25 100755 (executable)
--- a/generate
+++ b/generate
@@ -258,6 +258,11 @@ sub process_subtree ($$) {
        }
        print O "\n";
     }
+    if (@targets) {
+       print O ".PHONY:";
+       print O " ${dir_prefix}${_}" foreach @targets;
+       print O "\n";
+    }
 
     return @targets;
 }