diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2022-05-06 23:09:18 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2022-11-20 17:13:29 -0300 |
commit | 289346ef863626f917bd3345912ed55fdd09cd40 (patch) | |
tree | c4e1f1a123caf1049e04cc99a06ffa4910a7e80c /src/jailcheck/jailcheck.h | |
parent | makefiles: remove unused BINOBJS variable (diff) | |
download | firejail-289346ef863626f917bd3345912ed55fdd09cd40.tar.gz firejail-289346ef863626f917bd3345912ed55fdd09cd40.tar.zst firejail-289346ef863626f917bd3345912ed55fdd09cd40.zip |
lib/Makefile: put all target before include of common.mk
The "all" target is usually intended to be the default one and when
running make, the first target on a makefile is the one that gets built
if no target is specified (such as when running `make` with no
arguments).
Also, note that unlike config.mk, src/common.mk may define its own
targets, so move the "all" target to before the include of
src/common.mk, to ensure that "all" keeps being the default target
regardless of what is defined in src/common.mk.
Note: If the "all" target is defined as depending directly on `$(OBJS)`
while it is empty (that is, before src/common.mk is included), running
`make` (or `make all`) will result in make always concluding that there
is nothing to be done and exiting. So make "all" depend on an
intermediary phony "lib" target instead, which in turn depends on
`$(OBJS)` (and is declared after `$(OBJS)` is populated).
Diffstat (limited to 'src/jailcheck/jailcheck.h')
0 files changed, 0 insertions, 0 deletions