summaryrefslogtreecommitdiffstats
path: root/man/Makemodule.am
blob: 03beb7a096d21f4fe673dcf1cb1af2d75491458d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
ADOCFILES_COMMON = \
	man/common_options.adoc \
	man/common_footer.adoc

ADOCFILES = $(ADOCFILES_COMMON) \
	man/cryptsetup.8.adoc \
	man/cryptsetup-open.8.adoc \
	man/cryptsetup-close.8.adoc \
	man/cryptsetup-reencrypt.8.adoc \
	man/cryptsetup-status.8.adoc \
	man/cryptsetup-resize.8.adoc \
	man/cryptsetup-refresh.8.adoc \
	man/cryptsetup-luksFormat.8.adoc \
	man/cryptsetup-luksSuspend.8.adoc \
	man/cryptsetup-luksResume.8.adoc \
	man/cryptsetup-luksAddKey.8.adoc \
	man/cryptsetup-luksRemoveKey.8.adoc \
	man/cryptsetup-luksConvertKey.8.adoc \
	man/cryptsetup-luksKillSlot.8.adoc \
	man/cryptsetup-luksChangeKey.8.adoc \
	man/cryptsetup-erase.8.adoc \
	man/cryptsetup-luksUUID.8.adoc \
	man/cryptsetup-isLuks.8.adoc \
	man/cryptsetup-luksDump.8.adoc \
	man/cryptsetup-luksHeaderBackup.8.adoc \
	man/cryptsetup-luksHeaderRestore.8.adoc \
	man/cryptsetup-token.8.adoc \
	man/cryptsetup-convert.8.adoc \
	man/cryptsetup-config.8.adoc \
	man/cryptsetup-tcryptDump.8.adoc \
	man/cryptsetup-bitlkDump.8.adoc \
	man/cryptsetup-fvault2Dump.8.adoc \
	man/cryptsetup-repair.8.adoc \
	man/cryptsetup-benchmark.8.adoc \
	man/cryptsetup-ssh.8.adoc \
	man/veritysetup.8.adoc \
	man/integritysetup.8.adoc

dist_noinst_DATA += $(ADOCFILES)

CRYPTSETUP_MANPAGES = \
	man/cryptsetup.8 \
	man/cryptsetup-open.8 \
	man/cryptsetup-close.8 \
	man/cryptsetup-reencrypt.8 \
	man/cryptsetup-status.8 \
	man/cryptsetup-resize.8 \
	man/cryptsetup-refresh.8 \
	man/cryptsetup-luksFormat.8 \
	man/cryptsetup-luksSuspend.8 \
	man/cryptsetup-luksResume.8 \
	man/cryptsetup-luksAddKey.8 \
	man/cryptsetup-luksRemoveKey.8 \
	man/cryptsetup-luksConvertKey.8 \
	man/cryptsetup-luksKillSlot.8 \
	man/cryptsetup-luksChangeKey.8 \
	man/cryptsetup-erase.8 \
	man/cryptsetup-luksUUID.8 \
	man/cryptsetup-isLuks.8 \
	man/cryptsetup-luksDump.8 \
	man/cryptsetup-luksHeaderBackup.8 \
	man/cryptsetup-luksHeaderRestore.8 \
	man/cryptsetup-token.8 \
	man/cryptsetup-convert.8 \
	man/cryptsetup-config.8 \
	man/cryptsetup-tcryptDump.8 \
	man/cryptsetup-bitlkDump.8 \
	man/cryptsetup-fvault2Dump.8 \
	man/cryptsetup-repair.8 \
	man/cryptsetup-benchmark.8

CRYPTSETUP_MANLINKS = \
	man/cryptsetup-create.8 \
	man/cryptsetup-plainOpen.8 \
	man/cryptsetup-luksOpen.8 \
	man/cryptsetup-loopaesOpen.8 \
	man/cryptsetup-tcryptOpen.8 \
	man/cryptsetup-bitlkOpen.8 \
	man/cryptsetup-fvault2Open.8 \
	man/cryptsetup-luksErase.8

VERITYSETUP_MANPAGES = man/veritysetup.8
INTEGRITYSETUP_MANPAGES = man/integritysetup.8
SSHPLUGIN_MANPAGES = man/cryptsetup-ssh.8

MANPAGES_ALL = \
	$(CRYPTSETUP_MANPAGES) \
	$(CRYPTSETUP_MANLINKS) \
	$(VERITYSETUP_MANPAGES) \
	$(INTEGRITYSETUP_MANPAGES) \
	$(SSHPLUGIN_MANPAGES)

MANPAGES =
MANLINKS =

if CRYPTSETUP
MANPAGES += $(CRYPTSETUP_MANPAGES)
MANLINKS += $(CRYPTSETUP_MANLINKS)
endif
if VERITYSETUP
MANPAGES += $(VERITYSETUP_MANPAGES)
endif
if INTEGRITYSETUP
MANPAGES += $(INTEGRITYSETUP_MANPAGES)
endif
if SSHPLUGIN_TOKEN
MANPAGES += $(SSHPLUGIN_MANPAGES)
endif

EXTRA_DIST += man/meson_dist_convert.sh

if ENABLE_ASCIIDOC
EXTRA_DIST += $(MANPAGES_ALL)
man8_MANS += $(MANPAGES) $(MANLINKS)

$(MANPAGES): $(ADOCFILES_COMMON)

SUFFIXES = .8.adoc .8
.8.adoc.8:
	$(AM_V_GEN) $(ASCIIDOCTOR) -b manpage \
		-a 'release-version=$(VERSION)' \
		--base-dir=$(abs_srcdir) \
		--destination-dir $(abs_builddir)/man $<

$(MANLINKS): $(MANPAGES)
gen-man: $(man8_MANS)

gen-man-dist:
	@list=`find -name *.adoc -not -path "*/man/common_*" | sed -e 's/\.adoc//g'`; \
	missing=`for p in $$list; do test -f $$p || echo $$p; done`; \
	if test -n "$$missing"; then \
		$(MAKE) $(AM_MAKEFLAGS) $$missing; \
	fi;

# !ENABLE_ASCIIDOC
else

if HAVE_MANPAGES
EXTRA_DIST += $(MANPAGES_ALL)
man8_MANS += $(MANPAGES) $(MANLINKS)
endif

gen-man:
gen-man-dist:
endif

dist-hook: gen-man-dist