Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve makefile cooperation with zuofiles #733

Merged
merged 1 commit into from
Oct 19, 2023
Merged

Conversation

mflatt
Copy link
Contributor

@mflatt mflatt commented Oct 19, 2023

The main goal here is to avoid surprise from make -n performing a build instead of just printing build steps. (The reason that make -n currently tends to build is subtle: the recipe steps mention $MAKE, and that causes GNU Make to treat the step as if starts with +.)

The change uses + explicitly and consistently to ensure that jobserver flags are passed along to zuo. Also, the commit uses an upgraded Zuo so that make flags like -n/--print-only are propagated to Zuo and recognized to avoid actually building --- except that zuo itself is built even by make -n.

Some zuofile changes here take advantage of Zuo support for dry-run modes like -n, but it's a very limited effort. Reporting of would-be build steps remains shallow.

Use `+` more consistently to ensure that jobserver flags are passed
along to `zuo`. Also, use an upgraded Zuo so that `make` flags like
`-n`/`--print-only` are propagated to Zuo and recognized to avoid
actually building --- except that `zuo` itself is built even by
`make -n`.

Some zuofile changes here take advantage of Zuo support for dry-run
modes like `-n`, but it's a very limited effort. Reporting of would-be
build steps remains shallow.
@burgerrg burgerrg merged commit 87efe89 into cisco:main Oct 19, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants