1 # Copyright 2021-2024, Alejandro Colomar <alx@kernel.org>
2 # SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception
6 .SHELLFLAGS
:= -Eeuo pipefail
-c
9 MAKEFLAGS
+= --no-builtin-rules
10 MAKEFLAGS
+= --no-builtin-variables
11 MAKEFLAGS
+= --warn-undefined-variables
15 MAKEFILEDIR
:= $(CURDIR
)/share
/mk
28 MK_
:= $(wildcard $(addprefix $(MAKEFILEDIR
)/, *.mk
*/*.mk
*/*/*.mk
*/*/*/*.mk
))
29 MK
:= $(CURDIR
)/GNUmakefile
$(MK_
)
40 $(info $(INFO_
)To see a list of targets
, run
:)
41 $(info $(INFO_
) $$ make nothing
-p \
)
42 $(info $(INFO_
) | grep
'^\.PHONY:' \
)
43 $(info $(INFO_
) | tr
' ' '\n' \
)
44 $(info $(INFO_
) | grep
-v
'^\.PHONY:' \
)
45 $(info $(INFO_
) |
sort;)
47 $(info $(INFO_
)To see a list of variables
, run
:)
48 $(info $(INFO_
) $$ find GNUmakefile share
/mk
/configure
-type f \
)
49 $(info $(INFO_
) |
sort \
)
50 $(info $(INFO_
) | xargs grep
'^[^[:space:]].*=' \
)
51 $(info $(INFO_
) | sed
's/=.*/=/' \
)
52 $(info $(INFO_
) | grep
-v
-e
':DEFAULT_.*=' -e
':MAKEFILE_.*INCLUDED :=';)
54 $(info $(INFO_
)To see a list of dependencies
(package
/program
), run
:)
55 $(info $(INFO_
) $$ find share
/mk
/configure
/build-depends
-type f \
)
56 $(info $(INFO_
) | sed
's,share/mk/configure/build-depends/,,' \
)
57 $(info $(INFO_
) | sed
's,\.mk,,' \
)
58 $(info $(INFO_
) |
sort;)