]> git.proxmox.com Git - mirror_frr.git/blob - doc/user/Makefile
doc: fix make setup
[mirror_frr.git] / doc / user / Makefile
1 include ../frr-sphinx.mk
2
3 # -----------------------------------------------------------------------------
4 # Automake requires that 3rd-party Makefiles recognize these targets.
5 # -----------------------------------------------------------------------------
6 # install
7 # install-data
8 # install-exec
9 # uninstall
10 # install-dvi
11 # install-html
12 # install-info
13 # install-ps
14 # install-pdf
15 # installdirs
16 # check
17 # installcheck
18 # mostlyclean
19 # clean
20 # distclean
21 # maintainer-clean
22 # dvi
23 # pdf
24 # ps
25 # info
26 # html
27 # tags
28 # ctags
29
30 # ignore these targets
31 EMPTY_AUTOMAKE_TARGETS = dvi ps tags ctags distdir install-exec install-dvi install-ps installdirs check installcheck install-html install-pdf install-data install
32 .PHONY: $(EMPTY_AUTOMAKE_TARGETS)
33 $(EMPTY_AUTOMAKE_TARGETS):
34
35 # When building 'all', the logic is that we want to make docs that are easily
36 # readable by the person that just built them. Technically the reST source is
37 # readable in its own right, but we'll also build info and html because those
38 # offer sequentially better reading experiences. PDF is not built by default
39 # because it takes quite a while.
40 all: info html
41
42 # info and html already have built-in sphinx rules; pdf goes to latexpdf
43 pdf: latexpdf
44
45 # install user manual as info file
46 install-info: info
47 install -d ${DESTDIR}${infodir}
48 gzip < _build/texinfo/frr.info > ${DESTDIR}${infodir}/frr.info.gz
49 install-info _build/texinfo/frr.info ${DESTDIR}${infodir}/dir
50
51 install-data: install-info
52
53 install: install-data
54
55 mostlyclean distclean maintainer-clean: clean