-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (18 loc) · 967 Bytes
/
Makefile
File metadata and controls
26 lines (18 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Make targets can be found in tools/make/*.mk
# Run `make help` to see more information about available targets
# Wrap `make` to force on the --warn-undefined-variables flag
# See: https://www.gnu.org/software/make/manual/make.html#Reading-Makefiles
# Ensure all targets (except _run) depend on _run, which handles
# dispatching to the correct sub-targets based on $(MAKECMDGOALS).
# This avoids redundant sub-Make invocations when multiple targets
# are specified on the command line.
# Optional environment flags (all accept: 1, true, yes)
# MAKE_DRY_RUN=true -> Prints commands without running them
# MAKE_DEBUG=true -> Shows detailed info about targets, variable expansion, rule matching, etc
.PHONY: _run
$(if $(MAKECMDGOALS),$(MAKECMDGOALS): %: _run)
_run:
@$(MAKE) -f tools/make/_common.mk $(MAKECMDGOALS) \
--warn-undefined-variables \
$(if $(filter true 1 yes,$(MAKE_DRY_RUN)),-n) \
$(if $(filter true 1 yes,$(MAKE_DEBUG)),--debug)