]>
Commit | Line | Data |
---|---|---|
9e53b315 DL |
1 | # |
2 | # doc/user | |
3 | # | |
4 | ||
5 | user_RSTFILES = \ | |
66a45dae | 6 | doc/user/affinitymap.rst \ |
9e53b315 DL |
7 | doc/user/babeld.rst \ |
8 | doc/user/ldpd.rst \ | |
9 | doc/user/basic.rst \ | |
10 | doc/user/bgp.rst \ | |
ed18356f | 11 | doc/user/bmp.rst \ |
9e53b315 DL |
12 | doc/user/bugs.rst \ |
13 | doc/user/conf.py \ | |
14 | doc/user/eigrpd.rst \ | |
433d9566 | 15 | doc/user/evpn.rst \ |
f93640b8 | 16 | doc/user/extlog.rst \ |
f3c7b99d | 17 | doc/user/fabricd.rst \ |
9e53b315 | 18 | doc/user/filter.rst \ |
cff40472 | 19 | doc/user/frr-reload.rst \ |
9e53b315 | 20 | doc/user/glossary.rst \ |
d92f5fd8 | 21 | doc/user/grpc.rst \ |
9e53b315 DL |
22 | doc/user/index.rst \ |
23 | doc/user/installation.rst \ | |
24 | doc/user/ipv6.rst \ | |
25 | doc/user/isisd.rst \ | |
26 | doc/user/kernel.rst \ | |
1e8a2920 | 27 | doc/user/nexthop_groups.rst \ |
9e53b315 DL |
28 | doc/user/nhrpd.rst \ |
29 | doc/user/ospf6d.rst \ | |
30 | doc/user/ospfd.rst \ | |
31 | doc/user/ospf_fundamentals.rst \ | |
32 | doc/user/overview.rst \ | |
33 | doc/user/packet-dumps.rst \ | |
4d7b695d | 34 | doc/user/pathd.rst \ |
9e53b315 | 35 | doc/user/pim.rst \ |
829ab021 | 36 | doc/user/pimv6.rst \ |
9e53b315 DL |
37 | doc/user/ripd.rst \ |
38 | doc/user/pbr.rst \ | |
39 | doc/user/ripngd.rst \ | |
40 | doc/user/routemap.rst \ | |
41 | doc/user/routeserver.rst \ | |
42 | doc/user/rpki.rst \ | |
0833300a | 43 | doc/user/scripting.rst \ |
9e53b315 DL |
44 | doc/user/setup.rst \ |
45 | doc/user/sharp.rst \ | |
46 | doc/user/snmp.rst \ | |
47 | doc/user/snmptrap.rst \ | |
48 | doc/user/static.rst \ | |
49 | doc/user/vnc.rst \ | |
b58ab00f | 50 | doc/user/vrrp.rst \ |
9e53b315 DL |
51 | doc/user/vtysh.rst \ |
52 | doc/user/zebra.rst \ | |
53 | doc/user/bfd.rst \ | |
54 | doc/user/flowspec.rst \ | |
46664285 | 55 | doc/user/watchfrr.rst \ |
ed647ed2 | 56 | doc/user/wecmp_linkbw.rst \ |
5b08f6f9 | 57 | doc/user/mgmtd.rst \ |
9e53b315 DL |
58 | # end |
59 | ||
60 | EXTRA_DIST += \ | |
61 | $(user_RSTFILES) \ | |
62 | doc/user/Useful_Sysctl_Settings.md \ | |
26eaf6e3 DL |
63 | doc/user/_static/overrides.css \ |
64 | doc/user/_static/overrides.js \ | |
9e53b315 DL |
65 | # end |
66 | ||
67 | USERBUILD = doc/user/_build | |
68 | $(USERBUILD)/.doctrees/environment.pickle: $(user_RSTFILES) | |
69 | ||
70 | # | |
71 | # automake integration (things that should be built in "all") | |
72 | # | |
73 | ||
74 | if DOC | |
75 | nodist_noinst_DATA += $(USERBUILD)/texinfo/frr.info | |
76 | endif | |
77 | if DOC_HTML | |
78 | nodist_noinst_DATA += $(USERBUILD)/html/.buildinfo | |
79 | endif | |
80 | ||
81 | # | |
82 | # standard targets | |
83 | # | |
84 | ||
85 | .PHONY: info html pdf | |
86 | info: $(USERBUILD)/texinfo/frr.info | |
87 | html: $(USERBUILD)/html/.buildinfo | |
88 | pdf: $(USERBUILD)/latexpdf | |
89 | ||
90 | # | |
91 | # hook-ins for clean / install / doc | |
92 | # | |
93 | ||
94 | .PHONY: clean-userdocs | |
95 | clean-local: clean-userdocs | |
96 | clean-userdocs: | |
97 | -rm -rf "$(USERBUILD)" | |
98 | ||
99 | # INSTALL_INFO=install-info | |
100 | .PHONY: install-info uninstall-info install-html uninstall-html | |
101 | ||
102 | install-info: $(USERBUILD)/texinfo/frr.info | |
103 | $(MKDIR_P) "$(DESTDIR)$(infodir)" | |
104 | $(INSTALL_DATA) "$<" "$(DESTDIR)$(infodir)" | |
105 | [ -z "${DESTDIR}" ] && $(INSTALL_INFO) --info-dir="$(DESTDIR)$(infodir)" "$<" || true | |
106 | uninstall-info: $(USERBUILD)/texinfo/frr.info | |
107 | -rm -f "$(DESTDIR)$(infodir)/$<" | |
108 | [ -z "${DESTDIR}" ] && $(INSTALL_INFO) --delete --info-dir="$(DESTDIR)$(infodir)" "$<" || true | |
109 | ||
110 | install-html: $(USERBUILD)/html/.buildinfo | |
111 | $(MKDIR_P) "$(DESTDIR)$(htmldir)" | |
112 | cp -r "$(USERBUILD)/html" "$(DESTDIR)$(htmldir)" | |
113 | uninstall-html: | |
114 | -rm -rf "$(DESTDIR)$(htmldir)/html" | |
115 | ||
116 | .PHONY: install-data-local uninstall-local | |
117 | if DOC | |
118 | DOC_INFO=info | |
62e71214 DL |
119 | TARGET_INSTALL_INFO=install-info |
120 | TARGET_UNINSTALL_INFO=uninstall-info | |
9e53b315 DL |
121 | endif |
122 | if DOC_HTML | |
123 | DOC_HTML=html | |
62e71214 DL |
124 | TARGET_INSTALL_HTML=install-html |
125 | TARGET_UNINSTALL_HTML=uninstall-html | |
9e53b315 | 126 | endif |
62e71214 DL |
127 | |
128 | # leave the comments in, this was causing weird reordering issues in automake | |
129 | install-data-local: $(TARGET_INSTALL_INFO) $(TARGET_INSTALL_HTML) | |
130 | # | |
131 | uninstall-local: $(TARGET_UNINSTALL_INFO) $(TARGET_UNINSTALL_HTML) | |
132 | # | |
9e53b315 | 133 | doc: $(DOC_INFO) $(DOC_HTML) |