give make a single call for the settings the CLI resolves

myos export prints every setting the requested stacks declare, in one process:
68 variables in half a second, where asking for them one at a time costs a
process each and about ten seconds.

The shim reads that once and includes it, so a .mk target sees
HOST_FABIO_VERSION and the computed fabio tag without make knowing anything
about how they are produced. --make quotes the values so make neither expands
a $ nor starts a comment at a #.
This commit is contained in:
Yann Autissier
2026-09-05 12:10:32 +02:00
parent ca7338bcb6
commit f2bcbc6857
9 changed files with 71 additions and 6 deletions
@@ -0,0 +1,2 @@
[exit 0]
+4
View File
@@ -0,0 +1,4 @@
@MYOS@/share/make/shim.mk:66: warning: overriding commands for target `.myos.settings.mk'
@MYOS@/share/make/shim.mk:44: warning: ignoring old commands for target `.myos.settings.mk'
docker compose -f @WD@/stack/host/consul.yml -f @MYOS@/share/compose/networks.yml -p testhost --project-directory @WD@/stack/host config
[exit 0]
@@ -0,0 +1,4 @@
@MYOS@/share/make/shim.mk:66: warning: overriding commands for target `.myos.settings.mk'
@MYOS@/share/make/shim.mk:44: warning: ignoring old commands for target `.myos.settings.mk'
would renew the certificates of host/consul host/fabio
[exit 0]
@@ -0,0 +1,6 @@
@MYOS@/share/make/shim.mk:66: warning: overriding commands for target `.myos.settings.mk'
@MYOS@/share/make/shim.mk:44: warning: ignoring old commands for target `.myos.settings.mk'
docker network create tester-local
docker network create testhost
docker compose -f @WD@/stack/host/consul.yml -f @WD@/stack/host/fabio.yml -f @MYOS@/share/compose/networks.yml -p testhost --project-directory @WD@/stack/host up -d
[exit 0]