Commit 731362ad authored by sof's avatar sof

[project @ 1996-09-17 00:14:05 by sof]

Generate new way&suffix names
parent 216bfb01
......@@ -161,9 +161,9 @@ foreach $sf (@Src_files) {
# builds up @Depend_lines
print STDERR "Here we go for source file: $sf\n" if $Verbose;
($bf = $sf) =~ s/\.l?hs$//;
push(@Depend_lines, "$bf$Obj_suffix $bf.hi : $sf\n");
push(@Depend_lines, "$bf.$Obj_suffix $bf.hi : $sf\n");
foreach $suff (@File_suffix) {
push(@Depend_lines, "$bf$suff$Obj_suffix : $sf\n");
push(@Depend_lines, "$bf.$suff\_$Obj_suffix : $sf\n");
}
# if it's a literate file, .lhs, then we de-literatize it:
......@@ -362,18 +362,18 @@ sub slurp_file_for_imports {
$int_file = $follow_file;
if ( $int_file !~ /\.(l?hs|hi)$/ ) {
push(@Depend_lines, "$bf$Obj_suffix : $int_file\n");
push(@Depend_lines, "$bf.$Obj_suffix : $int_file\n");
foreach $suff (@File_suffix) {
push(@Depend_lines, "$bf$suff$Obj_suffix : $int_file\n");
push(@Depend_lines, "$bf.$suff\_$Obj_suffix : $int_file\n");
}
} else {
$int_file =~ s/\.l?hs$//;
$int_file =~ s/\.hi$//;
push(@Depend_lines, "$bf$Obj_suffix : $int_file.hi\n");
push(@Depend_lines, "$bf.$Obj_suffix : $int_file.hi\n");
foreach $suff (@File_suffix) {
push(@Depend_lines, "$bf$suff$Obj_suffix : $int_file$suff.hi\n");
push(@Depend_lines, "$bf.$suff\_$Obj_suffix : $int_file.$suff\_hi\n");
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment