aboutsummaryrefslogtreecommitdiffstats
path: root/src/man/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/man/Makefile')
-rw-r--r--src/man/Makefile25
1 files changed, 18 insertions, 7 deletions
diff --git a/src/man/Makefile b/src/man/Makefile
index 197f76192..526ed7fcb 100644
--- a/src/man/Makefile
+++ b/src/man/Makefile
@@ -2,14 +2,25 @@
2ROOT = ../.. 2ROOT = ../..
3-include $(ROOT)/config.mk 3-include $(ROOT)/config.mk
4 4
5MOD_DIR := $(ROOT)/src/man
6MANPAGES_IN := $(sort $(wildcard $(MOD_DIR)/*.in))
7MANPAGES_GZ := $(MANPAGES_IN:.in=.gz)
8TARGET = $(MANPAGES_GZ)
9
5.PHONY: all 10.PHONY: all
6all: firecfg.man firejail.man firejail-login.man firejail-users.man firejail-profile.man firemon.man jailcheck.man 11all: $(TARGET)
7 12
8%.man: %.txt $(ROOT)/config.mk 13# foo.1: foo.1.in
9 gawk -f ./preproc.awk -- $(MANFLAGS) < $< > $@ 14$(MOD_DIR)/%: $(MOD_DIR)/%.in $(ROOT)/config.mk
15 @printf 'Generating %s from %s\n' $@ $<
16 @gawk -f $(MOD_DIR)/preproc.awk -- $(MANFLAGS) <$< | \
17 $(MOD_DIR)/mkman.sh $(VERSION) >$@
10 18
11.PHONY: clean 19# foo.1.gz: foo.1
12clean:; rm -fr *.man 20$(MOD_DIR)/%.gz: $(MOD_DIR)/%
21 @printf 'Generating %s from %s\n' $@ $<
22 @rm -f $@
23 @gzip -n9 $<
13 24
14.PHONY: distclean 25.PHONY: clean
15distclean: clean 26clean:; rm -f *.1 *.5 *.gz