]>
Commit | Line | Data |
---|---|---|
9f95a23c TL |
1 | # SPDX-License-Identifier: BSD-3-Clause |
2 | # Copyright(c) 2010-2014 Intel Corporation | |
7c673cae FG |
3 | |
4 | # build helper .mk | |
5 | ||
6 | # fast way, no need to do prebuild and postbuild | |
7 | ifeq ($(PREBUILD)$(POSTBUILD),) | |
8 | ||
9 | _postbuild: $(_BUILD) | |
10 | @touch _postbuild | |
11 | ||
12 | else # slower way | |
13 | ||
14 | _prebuild: $(PREBUILD) | |
15 | @touch _prebuild | |
16 | ||
17 | ifneq ($(_BUILD),) | |
18 | $(_BUILD): _prebuild | |
19 | else | |
20 | _BUILD = _prebuild | |
21 | endif | |
22 | ||
23 | _build: $(_BUILD) | |
24 | @touch _build | |
25 | ||
26 | ifneq ($(POSTBUILD),) | |
27 | $(POSTBUILD): _build | |
28 | else | |
29 | POSTBUILD = _build | |
30 | endif | |
31 | ||
32 | _postbuild: $(POSTBUILD) | |
33 | @touch _postbuild | |
34 | endif |