diff options
author | 2023-07-07 14:01:20 -0400 | |
---|---|---|
committer | 2023-07-07 14:01:20 -0400 | |
commit | 9e206b7f2cef2db87b964da8d8199cc47c5c4a8b (patch) | |
tree | 50d8ebaf4d99796900a4d92f8fe1b6650ff6af3a /src/man/Makefile | |
parent | Merge pull request #5885 from pirate486743186/lobster (diff) | |
download | firejail-9e206b7f2cef2db87b964da8d8199cc47c5c4a8b.tar.gz firejail-9e206b7f2cef2db87b964da8d8199cc47c5c4a8b.tar.zst firejail-9e206b7f2cef2db87b964da8d8199cc47c5c4a8b.zip |
rework src/man Makefile
Diffstat (limited to 'src/man/Makefile')
-rw-r--r-- | src/man/Makefile | 41 |
1 files changed, 36 insertions, 5 deletions
diff --git a/src/man/Makefile b/src/man/Makefile index 197f76192..17c5cde13 100644 --- a/src/man/Makefile +++ b/src/man/Makefile | |||
@@ -2,14 +2,45 @@ | |||
2 | ROOT = ../.. | 2 | ROOT = ../.. |
3 | -include $(ROOT)/config.mk | 3 | -include $(ROOT)/config.mk |
4 | 4 | ||
5 | .PHONY: all | 5 | all: firecfg.1.gz firejail.1.gz firejail-login.5.gz firejail-users.5.gz firejail-profile.5.gz firemon.1.gz jailcheck.1.gz |
6 | all: firecfg.man firejail.man firejail-login.man firejail-users.man firejail-profile.man firemon.man jailcheck.man | 6 | |
7 | #firecfg.1.gz: firecfg.txt | ||
8 | # gawk -f ./preproc.awk -- $(MANFLAGS) < $< > firecfg.1 | ||
9 | # ./mkman.sh $(VERSION) firecfg.1 | ||
10 | # gzip -n9 firecfg.1 | ||
11 | |||
12 | # a small function to build a manpage | ||
13 | define build | ||
14 | gawk -f ./preproc.awk -- $(MANFLAGS) < $1 > $2 | ||
15 | ./mkman.sh $(VERSION) ./$2 | ||
16 | rm -f $2.gz | ||
17 | gzip -n9 $2 | ||
18 | endef | ||
19 | |||
20 | firecfg.1.gz: firecfg.txt | ||
21 | $(call build,firecfg.txt,firecfg.1) | ||
22 | |||
23 | firejail.1.gz: firejail.txt | ||
24 | $(call build,firejail.txt,firejail.1) | ||
25 | |||
26 | firejail-login.5.gz: firejail-login.txt | ||
27 | $(call build,firejail-login.txt,firejail-login.5) | ||
28 | |||
29 | firejail-users.5.gz: firejail-users.txt | ||
30 | $(call build,firejail-users.txt,firejail-users.5) | ||
31 | |||
32 | firejail-profile.5.gz: firejail-profile.txt | ||
33 | $(call build,firejail-profile.txt,firejail-profile.5) | ||
34 | |||
35 | firemon.1.gz: firemon.txt | ||
36 | $(call build,firemon.txt,firemon.1) | ||
37 | |||
38 | jailcheck.1.gz: jailcheck.txt | ||
39 | $(call build,jailcheck.txt,jailcheck.1) | ||
7 | 40 | ||
8 | %.man: %.txt $(ROOT)/config.mk | ||
9 | gawk -f ./preproc.awk -- $(MANFLAGS) < $< > $@ | ||
10 | 41 | ||
11 | .PHONY: clean | 42 | .PHONY: clean |
12 | clean:; rm -fr *.man | 43 | clean:; rm -fr *.1 *.5 *.gz |
13 | 44 | ||
14 | .PHONY: distclean | 45 | .PHONY: distclean |
15 | distclean: clean | 46 | distclean: clean |