mirror of
https://github.com/mirror/tinycc.git
synced 2025-02-26 08:00:09 +08:00
Change dependency file format a bit
The linux fixdep parse is very stupid and only recognizes a target token when ':' is part of it. A space is permitted in Makefile syntax, but it's easier to change our emitter than all fixdep parsers out there.
This commit is contained in:
parent
b285fc50f3
commit
2b3c7d2287
2
tcc.c
2
tcc.c
@ -212,7 +212,7 @@ static void gen_makedeps(TCCState *s, const char *target, const char *filename)
|
||||
if (!depout)
|
||||
tcc_error("could not open '%s'", filename);
|
||||
|
||||
fprintf(depout, "%s : \\\n", target);
|
||||
fprintf(depout, "%s: \\\n", target);
|
||||
for (i=0; i<s->nb_target_deps; ++i)
|
||||
fprintf(depout, " %s \\\n", s->target_deps[i]);
|
||||
fprintf(depout, "\n");
|
||||
|
Loading…
Reference in New Issue
Block a user