]> git.proxmox.com Git - mirror_frr.git/blob - doc/user/subdir.am
Merge pull request #4436 from donaldsharp/tools_frr_flush
[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/vrrp.rst \
41 doc/user/vtysh.rst \
42 doc/user/zebra.rst \
43 doc/user/bfd.rst \
44 doc/user/flowspec.rst \
45 # end
46
47 EXTRA_DIST += \
48 $(user_RSTFILES) \
49 doc/user/Useful_Sysctl_Settings.md \
50 # end
51
52 USERBUILD = doc/user/_build
53 $(USERBUILD)/.doctrees/environment.pickle: $(user_RSTFILES)
54
55 #
56 # automake integration (things that should be built in "all")
57 #
58
59 if DOC
60 nodist_noinst_DATA += $(USERBUILD)/texinfo/frr.info
61 endif
62 if DOC_HTML
63 nodist_noinst_DATA += $(USERBUILD)/html/.buildinfo
64 endif
65
66 #
67 # standard targets
68 #
69
70 .PHONY: info html pdf
71 info: $(USERBUILD)/texinfo/frr.info
72 html: $(USERBUILD)/html/.buildinfo
73 pdf: $(USERBUILD)/latexpdf
74
75 #
76 # hook-ins for clean / install / doc
77 #
78
79 .PHONY: clean-userdocs
80 clean-local: clean-userdocs
81 clean-userdocs:
82 -rm -rf "$(USERBUILD)"
83
84 # INSTALL_INFO=install-info
85 .PHONY: install-info uninstall-info install-html uninstall-html
86
87 install-info: $(USERBUILD)/texinfo/frr.info
88 $(MKDIR_P) "$(DESTDIR)$(infodir)"
89 $(INSTALL_DATA) "$<" "$(DESTDIR)$(infodir)"
90 [ -z "${DESTDIR}" ] && $(INSTALL_INFO) --info-dir="$(DESTDIR)$(infodir)" "$<" || true
91 uninstall-info: $(USERBUILD)/texinfo/frr.info
92 -rm -f "$(DESTDIR)$(infodir)/$<"
93 [ -z "${DESTDIR}" ] && $(INSTALL_INFO) --delete --info-dir="$(DESTDIR)$(infodir)" "$<" || true
94
95 install-html: $(USERBUILD)/html/.buildinfo
96 $(MKDIR_P) "$(DESTDIR)$(htmldir)"
97 cp -r "$(USERBUILD)/html" "$(DESTDIR)$(htmldir)"
98 uninstall-html:
99 -rm -rf "$(DESTDIR)$(htmldir)/html"
100
101 .PHONY: install-data-local uninstall-local
102 if DOC
103 DOC_INFO=info
104 TARGET_INSTALL_INFO=install-info
105 TARGET_UNINSTALL_INFO=uninstall-info
106 endif
107 if DOC_HTML
108 DOC_HTML=html
109 TARGET_INSTALL_HTML=install-html
110 TARGET_UNINSTALL_HTML=uninstall-html
111 endif
112
113 # leave the comments in, this was causing weird reordering issues in automake
114 install-data-local: $(TARGET_INSTALL_INFO) $(TARGET_INSTALL_HTML)
115 #
116 uninstall-local: $(TARGET_UNINSTALL_INFO) $(TARGET_UNINSTALL_HTML)
117 #
118 doc: $(DOC_INFO) $(DOC_HTML)