aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ee/tools/ninja.py6
-rw-r--r--src/ee/tools/templates/build.ninja.j24
2 files changed, 6 insertions, 4 deletions
diff --git a/src/ee/tools/ninja.py b/src/ee/tools/ninja.py
index ffc80c9..9e919fb 100644
--- a/src/ee/tools/ninja.py
+++ b/src/ee/tools/ninja.py
@@ -101,7 +101,11 @@ def generate(project: Project):
"# here, but keep the include line as we'll update ee.ninja for you when your\n",
"# configuration changes\n",
"\n",
- "include ee.ninja\n"])
+ "include ee.ninja\n",
+ "\n",
+ "# This will build all reports by default\n",
+ "default ee-reports\n",
+ ])
with ee_ninja.open("w") as f:
env = _create_env()
diff --git a/src/ee/tools/templates/build.ninja.j2 b/src/ee/tools/templates/build.ninja.j2
index 1f8bcad..4d2e22f 100644
--- a/src/ee/tools/templates/build.ninja.j2
+++ b/src/ee/tools/templates/build.ninja.j2
@@ -150,6 +150,4 @@ build ee/seeed/opl/{{ opl }}.xml: seeed-download-opl
{%- endif %}
# Reports
-{%- for r in reports %}
-default {{ r }}
-{%- endfor %}
+build ee-reports: phony {{ " ".join(reports) }}