/
Makefile.am
41 lines (30 loc) · 1.52 KB
1
2
3
#
SUBDIRS = styles inc images
4
CONV = "$(srcdir)/html.py"
5
6
FTR_PAGES = csd.html charset.html token.html pkcs11.html tpm.html features.html gui.html nonroot.html hip.html tncc.html
7
START_PAGES = building.html connecting.html manual.html vpnc-script.html
8
INDEX_PAGES = changelog.html download.html index.html packages.html platforms.html licence.html
9
PROTO_PAGES = protocols.html anyconnect.html array.html fortinet.html f5.html globalprotect.html juniper.html pulse.html
10
11
CONTR_PAGES = contribute.html mitm.html
TOPLEVEL_PAGES = mail.html
12
13
ALL_PAGES = $(FTR_PAGES) $(START_PAGES) $(INDEX_PAGES) $(TOPLEVEL_PAGES) $(PROTO_PAGES) $(CONTR_PAGES)
14
15
html_DATA = $(ALL_PAGES)
16
17
.xml.html:
18
$(PYTHON) $(CONV) -d $(srcdir) $< > $@ || (rm $@; exit 1)
19
20
21
22
clean-local:
rm -f $(ALL_PAGES) openconnect.8.inc
23
$(ALL_PAGES): menu1.xml $(srcdir)/inc/*.tmpl
24
25
$(FTR_PAGES): menu2-features.xml
$(START_PAGES): menu2-started.xml
26
$(PROTO_PAGES): menu2-protocols.xml
27
$(CONTR_PAGES): menu2-contribute.xml
28
29
30
$(MAIN_PAGES): menu2.xml
manual.html: openconnect.8.inc
31
32
33
34
$(top_builddir)/openconnect.8: $(top_srcdir)/openconnect.8.in $(top_builddir)/config.status
cd $(top_builddir) && $(SHELL) ./config.status openconnect.8
35
36
# If this command line ever changes significantly, so should the
# corresponding autoconf check.
37
openconnect.8.inc: $(top_builddir)/openconnect.8
38
39
$(GROFF) -t -K UTF-8 -mandoc -Txhtml $? | \
sed -e 's/−/-/g' -e '1,/<body>/d' -e '/<\/body>/,$$d' > $@
40
41
EXTRA_DIST = $(patsubst %.html,%.xml,$(ALL_PAGES)) $(srcdir)/menu1.xml $(srcdir)/menu2*.xml $(srcdir)/html.py