commit c6bde0a
shrub
·
2026-05-18 20:31:42 +0000 UTC
parent d953691
make dashed targets in graphviz less lenient
1 files changed,
+1,
-4
+1,
-4
1@@ -58,10 +58,7 @@ emitnode(FILE *fp, const struct Graph *graph, size_t i, const struct Target *t,
2 {
3 int dashed;
4
5- dashed = t->phony ||
6- (t->recipes.n == 0 &&
7- (t->prereqs.n > 0 || t->impprereqs.n > 0 || t->order_only.n > 0)) ||
8- !hasdependents(graph, i);
9+ dashed = t->phony || !hasdependents(graph, i);
10 fprintf(fp, " n%zu [label=\"", i);
11 emitstr(fp, t->name);
12 fprintf(fp, "\"");