aboutsummaryrefslogtreecommitdiffstats
path: root/src/man
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2021-02-12 05:25:23 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2021-03-01 16:07:43 -0300
commit2465f9248e1e2737479fad5065d8310a860ce415 (patch)
tree09ef4bd8d73c98b7cb8a23f6cc2b8ed6d43576a9 /src/man
parentmakefiles: fix misc blank line consistency (diff)
downloadfirejail-2465f9248e1e2737479fad5065d8310a860ce415.tar.gz
firejail-2465f9248e1e2737479fad5065d8310a860ce415.tar.zst
firejail-2465f9248e1e2737479fad5065d8310a860ce415.zip
makefiles: make all, clean and distclean PHONY
Avoid a stat() call for each affected target and also potentially speed up parallel builds. From the GNU make manual[1]: > Phony targets are also useful in conjunction with recursive > invocations of make (see Recursive Use of make). In this situation > the makefile will often contain a variable which lists a number of > sub-directories to be built. [...] > The implicit rule search (see Implicit Rules) is skipped for .PHONY > targets. This is why declaring a target as .PHONY is good for > performance, even if you are not worried about the actual file > existing. Commands used to search, replace and cleanup: $ find -type f -name '*Makefile.in' -exec sed -i.bak \ -e 's/^all:/.PHONY: all\nall:/' \ -e 's/^clean:/.PHONY: clean\nclean:/' \ -e 's/^distclean:/.PHONY: distclean\ndistclean:/' '{}' + $ find -type f -name '*Makefile.in.bak' -exec rm '{}' + [1]: https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html
Diffstat (limited to 'src/man')
-rw-r--r--src/man/Makefile.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/man/Makefile.in b/src/man/Makefile.in
index 1598935ca..3711d5cec 100644
--- a/src/man/Makefile.in
+++ b/src/man/Makefile.in
@@ -1,3 +1,4 @@
1.PHONY: all
1all: firecfg.man firejail.man firejail-login.man firejail-users.man firejail-profile.man firemon.man jailtest.man 2all: firecfg.man firejail.man firejail-login.man firejail-users.man firejail-profile.man firemon.man jailtest.man
2 3
3include ../common.mk 4include ../common.mk
@@ -5,7 +6,9 @@ include ../common.mk
5%.man: %.txt 6%.man: %.txt
6 gawk -f ./preproc.awk -- $(MANFLAGS) < $< > $@ 7 gawk -f ./preproc.awk -- $(MANFLAGS) < $< > $@
7 8
9.PHONY: clean
8clean:; rm -fr *.man 10clean:; rm -fr *.man
9 11
12.PHONY: distclean
10distclean: clean 13distclean: clean
11 rm -fr Makefile 14 rm -fr Makefile