blob: fcc96a3647b600b8850ed20e2b5b86b88bded2f0 (
plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 2021-2024, Alejandro Colomar <alx@kernel.org>
# SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception
SHELL := bash
.SHELLFLAGS := -Eeuo pipefail -c
MAKEFLAGS += --no-builtin-rules
MAKEFLAGS += --no-builtin-variables
MAKEFLAGS += --warn-undefined-variables
srcdir := .
MAKEFILEDIR := $(CURDIR)/share/mk
INFO_ :=
.PHONY: all
all: build;
.SECONDEXPANSION:
MK_ := $(wildcard $(addprefix $(MAKEFILEDIR)/, *.mk */*.mk */*/*.mk */*/*/*.mk))
MK := $(CURDIR)/GNUmakefile $(MK_)
include $(MK_)
$(MK):: ;
.PHONY: nothing
nothing:;
.PHONY: help
help:
$(info $(INFO_)To see a list of targets, run:)
$(info $(INFO_) $$ make nothing -p \)
$(info $(INFO_) | grep '^\.PHONY:' \)
$(info $(INFO_) | tr ' ' '\n' \)
$(info $(INFO_) | grep -v '^\.PHONY:' \)
$(info $(INFO_) | sort;)
$(info )
$(info $(INFO_)To see a list of variables, run:)
$(info $(INFO_) $$ find GNUmakefile share/mk/configure -type f \)
$(info $(INFO_) | sort \)
$(info $(INFO_) | xargs grep '^[^[:space:]].*=' \)
$(info $(INFO_) | sed 's/=.*/=/' \)
$(info $(INFO_) | grep -v -e ':DEFAULT_.*=' -e ':MAKEFILE_.*INCLUDED :=';)
$(info )
$(info $(INFO_)To see a list of dependencies (package/program), run:)
$(info $(INFO_) $$ find share/mk/configure/build-depends -type f \)
$(info $(INFO_) | sed 's,share/mk/configure/build-depends/,,' \)
$(info $(INFO_) | sed 's,\.mk,,' \)
$(info $(INFO_) | sort;)
$(info )
.DELETE_ON_ERROR:
.SILENT:
FORCE:
|