1# -*- coding: utf-8; mode: makefile-gmake -*-
2# SPDX-License-Identifier: AGPL-3.0-or-later
4ifeq (,$(wildcard /.lxcenv.mk))
5PHONY += lxc-activate lxc-purge
7 @$(MAKE) -s -f "$$(dirname $(abspath $(lastword $(MAKEFILE_LIST))))/makefile.lxc" lxc-activate
15ifeq (,$(wildcard /.lxcenv.mk))
21 @echo ' make V=0|1 [targets] 0 => quiet build (default), 1 => verbose build'
22 @echo ' make V=2 [targets] 2 => give reason for rebuild of target'
24ifeq ("$(origin V)", "command line")
41# stolen from linux/scripts/Kbuild.include
46#' this comment is only for emacs highlighting
48# Find any prerequisites that is newer than target or that does not exist.
49# PHONY targets skipped in both cases.
50any-prereq = $(filter-out $(PHONY),$?) $(filter-out $(PHONY) $(wildcard $^),$^)
53# why - tell why a a target got build
55# Output (listed in the order they are checked):
56# (1) - due to target is PHONY
57# (2) - due to target missing
58# (3) - due to: file1.h file2.h
59# (4) - due to command line change
60# (5) - due to missing .cmd file
61# (6) - due to target not in $(targets)
62# (1) PHONY targets are always build
63# (2) No target, so we better build it
64# (3) Prerequisite is newer than target
65# (4) The command line stored in the file named dir/.target.cmd
66# differed from actual command line. This happens when compiler
68# (5) No dir/.target.cmd file (used to store command line)
69# (6) No dir/.target.cmd file and target not listed in $(targets)
70# This is a good hint that there is a bug in the kbuild file
73 $(if $(filter $@, $(PHONY)),- due to target is PHONY, \
74 $(if $(wildcard $@), \
75 $(if $(strip $(any-prereq)),- due to: $(any-prereq), \
77 $(if $(cmd_$@),- due to command line change, \
78 $(if $(filter $@, $(targets)), \
79 - due to missing .cmd file, \
80 - due to $(notdir $@) not in $$(targets) \
85 - due to target missing \
89echo-why = $(call escsq, $(strip $(why)))
93# Escape single quote for use in echo statements
94escsq = $(subst $(squote),'\$(squote)',$1)
97# Short version is used, if $(quiet) equals `quiet_', otherwise full one.
98echo-cmd = $(if $($(quiet)cmd_$(1)),echo '$(call escsq,$($(quiet)cmd_$(1)))$(echo-why)';)
101cmd = @$(echo-cmd) $(cmd_$(1))
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list