]> git.proxmox.com Git - mirror_frr.git/blob - doc/user/subdir.am
Merge pull request #2985 from patrasar/Fix_1636
[mirror_frr.git] / doc / user / subdir.am
1 #
2 # doc/user
3 #
4
5 user_RSTFILES = \
6 doc/user/babeld.rst \
7 doc/user/ldpd.rst \
8 doc/user/basic.rst \
9 doc/user/bgp.rst \
10 doc/user/bugs.rst \
11 doc/user/conf.py \
12 doc/user/eigrpd.rst \
13 doc/user/fabricd.rst \
14 doc/user/filter.rst \
15 doc/user/glossary.rst \
16 doc/user/index.rst \
17 doc/user/installation.rst \
18 doc/user/ipv6.rst \
19 doc/user/isisd.rst \
20 doc/user/kernel.rst \
21 doc/user/nhrpd.rst \
22 doc/user/ospf6d.rst \
23 doc/user/ospfd.rst \
24 doc/user/ospf_fundamentals.rst \
25 doc/user/overview.rst \
26 doc/user/packet-dumps.rst \
27 doc/user/pim.rst \
28 doc/user/ripd.rst \
29 doc/user/pbr.rst \
30 doc/user/ripngd.rst \
31 doc/user/routemap.rst \
32 doc/user/routeserver.rst \
33 doc/user/rpki.rst \
34 doc/user/setup.rst \
35 doc/user/sharp.rst \
36 doc/user/snmp.rst \
37 doc/user/snmptrap.rst \
38 doc/user/static.rst \
39 doc/user/vnc.rst \
40 doc/user/vtysh.rst \
41 doc/user/zebra.rst \
42 doc/user/bfd.rst \
43 doc/user/flowspec.rst \
44 # end
45
46 EXTRA_DIST += \
47 $(user_RSTFILES) \
48 doc/user/Useful_Sysctl_Settings.md \
49 # end
50
51 USERBUILD = doc/user/_build
52 $(USERBUILD)/.doctrees/environment.pickle: $(user_RSTFILES)
53
54 #
55 # automake integration (things that should be built in "all")
56 #
57
58 if DOC
59 nodist_noinst_DATA += $(USERBUILD)/texinfo/frr.info
60 endif
61 if DOC_HTML
62 nodist_noinst_DATA += $(USERBUILD)/html/.buildinfo
63 endif
64
65 #
66 # standard targets
67 #
68
69 .PHONY: info html pdf
70 info: $(USERBUILD)/texinfo/frr.info
71 html: $(USERBUILD)/html/.buildinfo
72 pdf: $(USERBUILD)/latexpdf
73
74 #
75 # hook-ins for clean / install / doc
76 #
77
78 .PHONY: clean-userdocs
79 clean-local: clean-userdocs
80 clean-userdocs:
81 -rm -rf "$(USERBUILD)"
82
83 # INSTALL_INFO=install-info
84 .PHONY: install-info uninstall-info install-html uninstall-html
85
86 install-info: $(USERBUILD)/texinfo/frr.info
87 $(MKDIR_P) "$(DESTDIR)$(infodir)"
88 $(INSTALL_DATA) "$<" "$(DESTDIR)$(infodir)"
89 [ -z "${DESTDIR}" ] && $(INSTALL_INFO) --info-dir="$(DESTDIR)$(infodir)" "$<" || true
90 uninstall-info: $(USERBUILD)/texinfo/frr.info
91 -rm -f "$(DESTDIR)$(infodir)/$<"
92 [ -z "${DESTDIR}" ] && $(INSTALL_INFO) --delete --info-dir="$(DESTDIR)$(infodir)" "$<" || true
93
94 install-html: $(USERBUILD)/html/.buildinfo
95 $(MKDIR_P) "$(DESTDIR)$(htmldir)"
96 cp -r "$(USERBUILD)/html" "$(DESTDIR)$(htmldir)"
97 uninstall-html:
98 -rm -rf "$(DESTDIR)$(htmldir)/html"
99
100 .PHONY: install-data-local uninstall-local
101 if DOC
102 DOC_INFO=info
103 install-data-local: install-info
104 uninstall-local: uninstall-info
105 endif
106 if DOC_HTML
107 DOC_HTML=html
108 install-data-local: install-html
109 uninstall-local: uninstall-html
110 endif
111 doc: $(DOC_INFO) $(DOC_HTML)