aboutsummaryrefslogtreecommitdiff
path: root/tcc.c
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-06-27 18:47:09 +0200
committerMichael Matz <matz@suse.de>2016-12-15 17:47:06 +0100
commit2b3c7d2287ff9d5958f5e9d75d5881220a3c0f37 (patch)
treee15eceeb38866541cce751b1a4dc34fe7fced7bf /tcc.c
parentb285fc50f37e7b1373b224b0de983793117ae015 (diff)
downloadtinycc-2b3c7d2287ff9d5958f5e9d75d5881220a3c0f37.tar.gz
tinycc-2b3c7d2287ff9d5958f5e9d75d5881220a3c0f37.tar.bz2
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.
Diffstat (limited to 'tcc.c')
-rw-r--r--tcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcc.c b/tcc.c
index fbfbffa..cbef5d3 100644
--- a/tcc.c
+++ b/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");