Skip to content

Commit

Permalink
xxx
Browse files Browse the repository at this point in the history
  • Loading branch information
lefessan committed Mar 15, 2024
1 parent a48e886 commit bea01c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cobc/cobc.c
Original file line number Diff line number Diff line change
Expand Up @@ -9314,7 +9314,7 @@ process_file (struct filename *fn, int status)
if (cb_depend_add_phony){
for (l = cb_depend_list; l; l = l->next) {
char* filename = cobc_slashify (l->text);
fprintf (file, "%s:\n", l->text);
fprintf (file, "%s:\n", filename);
cobc_free (filename);
}
}
Expand Down
9 changes: 6 additions & 3 deletions tests/testsuite.src/used_binaries.at
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,7 @@ AT_CHECK([$COMPILE_ONLY -M -fcopybook-deps prog.cob], [0],

])

AT_CHECK([$COMPILE_ONLY -M -MT prog.so prog.cob], [0],
AT_CHECK([$COMPILE -g -M -MT prog.so prog.cob], [0],
[prog.so: \
prog.cob \
COPY1.CPY \
Expand All @@ -1201,6 +1201,9 @@ AT_CHECK([$COMPILE_ONLY -M -MT prog.so prog.cob], [0],

])

AT_CHECK([test -f prog.c], [1])
AT_CHECK([test -f prog.o], [1])

AT_CHECK([$COMPILE_ONLY -M -MQ '$(target)#toto' prog.cob], [0],
[$$(target)\#toto: \
prog.cob \
Expand All @@ -1215,8 +1218,6 @@ AT_CAPTURE_FILE([prog.d])

AT_CHECK([$COMPILE -MD prog.cob])

AT_CHECK([$COMPILE -MD prog.cob])

AT_CHECK([cat prog.d], [0],
[prog.o: \
prog.cob \
Expand All @@ -1228,6 +1229,8 @@ AT_CHECK([cat prog.d], [0],

AT_CHECK([$COMPILE -MD -o sub/prog.exe prog.cob])

AT_CHECK([test -f sub/prog.exe])

AT_CHECK([cat sub/prog.d], [0],
[prog.o: \
prog.cob \
Expand Down

0 comments on commit bea01c0

Please sign in to comment.