summaryrefslogtreecommitdiffstats
path: root/doc/user/Makefile
blob: 223f8a64a3386f3cc45889ae0d5aedd074cb4999 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
include ../frr-sphinx.mk

# -----------------------------------------------------------------------------
# Automake requires that 3rd-party Makefiles recognize these targets.
# -----------------------------------------------------------------------------
# install
# install-data
# install-exec
# uninstall
# install-dvi
# install-html
# install-info
# install-ps
# install-pdf
# installdirs
# check
# installcheck
# mostlyclean
# clean
# distclean
# maintainer-clean
# dvi
# pdf
# ps
# info
# html
# tags
# ctags

# ignore these targets
EMPTY_AUTOMAKE_TARGETS = dvi ps tags ctags distdir install-exec install-dvi install-ps installdirs check installcheck install-html install-pdf install-data install
.PHONY: $(EMPTY_AUTOMAKE_TARGETS)
$(EMPTY_AUTOMAKE_TARGETS):

# When building 'all', the logic is that we want to make docs that are easily
# readable by the person that just built them. Technically the reST source is
# readable in its own right, but we'll also build info and html because those
# offer sequentially better reading experiences. PDF is not built by default
# because it takes quite a while.
all: info

# info and html already have built-in sphinx rules; pdf goes to latexpdf
pdf: latexpdf

# install user manual as info file
install-info: info
	install -d ${DESTDIR}${infodir}
	gzip < _build/texinfo/frr.info > ${DESTDIR}${infodir}/frr.info.gz
	install-info _build/texinfo/frr.info ${DESTDIR}${infodir}/dir

install-data: install-info

install: install-data

mostlyclean distclean maintainer-clean: clean