diff options
Diffstat (limited to 'util/pl/f')
-rw-r--r-- | util/pl/f | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/util/pl/f b/util/pl/f new file mode 100644 index 0000000000..a280b70550 --- /dev/null +++ b/util/pl/f @@ -0,0 +1,17 @@ +# do a rule for each file that says 'copy' to new direcory on change +sub do_copy_rule + { + local($to,$files,$p)=@_; + local($ret,$_,$n,$pp); + + $files =~ s/\//$o/g if $o ne '/'; + foreach (split(/\s+/,$files)) + { + $n=&bname($_); + if ($n =~ /bss_file/) + { $pp=".c"; } + else { $pp=$p; } + $ret.="$to${o}$n$pp: \$(SRC_D)$o$_$pp\n\t\$(CP) \$(SRC_D)$o$_$pp $to${o}$n$pp\n\n"; + } + return($ret); + } |