make
__wrappers sync writes .runna/runna.mk, a GNU make include with one phony target per runna target. Include it from
the Makefile:
# Makefile
-include .runna/runna.mk
The - makes a checkout without the file still parse.
make test ARGS="--filter Unit"
make pkg/generate
To write only this file:
./build.cs __wrappers sync --only make
NULLEAN_RUNNA_RUN ?= dotnet run build.cs --
# Pack the NuGet packages
pkg/generate:
@$(NULLEAN_RUNNA_RUN) pkg generate $(ARGS)
- Arguments go in
ARGS. The shell parses them, soARGS="--filter 'A B'"passesA Bas one value. NULLEAN_RUNNA_RUNis set with?=, so a Makefile or the environment can override it.- The include keeps the Makefile's default goal. Including it at the top does not make a bare
makerun a target. make test packstarts the script twice, and each run resolves its own dependencies.
See Wrappers for the options and the task names.