Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
731362ad
Commit
731362ad
authored
Sep 17, 1996
by
sof
Browse files
[project @ 1996-09-17 00:14:05 by sof]
Generate new way&suffix names
parent
216bfb01
Changes
1
Show whitespace changes
Inline
Side-by-side
ghc/utils/mkdependHS/mkdependHS.prl
View file @
731362ad
...
@@ -161,9 +161,9 @@ foreach $sf (@Src_files) {
...
@@ -161,9 +161,9 @@ foreach $sf (@Src_files) {
# builds up @Depend_lines
# builds up @Depend_lines
print STDERR "Here we go for source file: $sf\n" if $Verbose;
print STDERR "Here we go for source file: $sf\n" if $Verbose;
($bf = $sf) =~ s/\.l?hs$//;
($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) {
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:
# if it's a literate file, .lhs, then we de-literatize it:
...
@@ -362,18 +362,18 @@ sub slurp_file_for_imports {
...
@@ -362,18 +362,18 @@ sub slurp_file_for_imports {
$int_file = $follow_file;
$int_file = $follow_file;
if ( $int_file !~ /\.(l?hs|hi)$/ ) {
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) {
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 {
} else {
$int_file =~ s/\.l?hs$//;
$int_file =~ s/\.l?hs$//;
$int_file =~ s/\.hi$//;
$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) {
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");
}
}
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment