A cosmetic change for generated ninja
diff --git a/ninja.go b/ninja.go
index 263c283..f982a59 100644
--- a/ninja.go
+++ b/ninja.go
@@ -147,11 +147,7 @@
}
func (n *NinjaGenerator) emitBuild(output, rule, dep string) {
- fmt.Fprintf(n.f, "build %s: %s", output, rule)
- if dep != "" {
- fmt.Fprintf(n.f, " %s", dep)
- }
- fmt.Fprintf(n.f, "\n")
+ fmt.Fprintf(n.f, "build %s: %s%s\n", output, rule, dep)
}
func getDepString(node *DepNode) string {
@@ -218,6 +214,9 @@
}
func (n *NinjaGenerator) run() {
+ fmt.Fprintf(n.f, "# Generated by kati\n")
+ fmt.Fprintf(n.f, "\n")
+
n.ex = NewExecutor(n.vars)
for _, node := range n.nodes {
n.emitNode(node)