File: Makefile-guide.am

package info (click to toggle)
cockpit 239-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 67,268 kB
  • sloc: javascript: 245,474; ansic: 72,273; python: 23,634; xml: 6,155; sh: 2,919; makefile: 923; sed: 5
file content (124 lines) | stat: -rw-r--r-- 3,532 bytes parent folder | download
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124

GUIDE_DOCBOOK = doc/guide/cockpit-guide.xml

GUIDE_INCLUDES = \
	doc/guide/api-cockpit.xml \
	doc/guide/api-base1.xml \
	doc/guide/api-shell.xml \
	doc/guide/api-system.xml \
	doc/guide/cockpit-cache.xml \
	doc/guide/cockpit-channel.xml \
	doc/guide/cockpit-dbus.xml \
	doc/guide/cockpit-error.xml \
	doc/guide/cockpit-file.xml \
	doc/guide/cockpit-http.xml \
	doc/guide/cockpit-locale.xml \
	doc/guide/cockpit-location.xml \
	doc/guide/cockpit-manifest.xml \
	doc/guide/cockpit-metrics.xml \
	doc/guide/cockpit-series.xml \
	doc/guide/cockpit-session.xml \
	doc/guide/cockpit-spawn.xml \
	doc/guide/cockpit-util.xml \
	doc/guide/authentication.xml \
	doc/guide/embedding.xml \
	doc/guide/feature-firewall.xml \
	doc/guide/feature-journal.xml \
	doc/guide/feature-machines.xml \
	doc/guide/feature-networkmanager.xml \
	doc/guide/feature-packagekit.xml \
	doc/guide/feature-pcp.xml \
	doc/guide/feature-realmd.xml \
	doc/guide/feature-selinux.xml \
	doc/guide/feature-sosreport.xml \
	doc/guide/feature-storaged.xml \
	doc/guide/feature-systemd.xml \
	doc/guide/feature-terminal.xml \
	doc/guide/feature-tuned.xml \
	doc/guide/feature-users.xml \
	doc/guide/feature-virtualmachines.xml \
	doc/guide/packages.xml \
	doc/guide/privileges.xml \
	doc/guide/https.xml \
	doc/guide/listen.xml \
	doc/guide/sso.xml \
	doc/guide/cert-authentication.xml \
	doc/guide/startup.xml \
	doc/guide/urls.xml \
	$(NULL)

GUIDE_STATIC = \
	doc/guide/static/home.png \
	doc/guide/static/gtk-doc.css \
	doc/guide/static/left.png \
	doc/guide/static/right.png \
	doc/guide/static/style.css \
	doc/guide/static/up.png \
	$(NULL)

GUIDE_XSLT = \
	doc/guide/gtk-doc.xsl \
	doc/guide/version-greater-or-equal.xsl \
	$(NULL)

# keep in sync with doc/guide/static/style.css
GUIDE_FONTS = \
	dist/guide/html/RedHatText-Regular.woff2 \
	dist/guide/html/RedHatText-Medium.woff2 \
	$(NULL)

EXTRA_DIST += \
	$(GUIDE_DOCBOOK) \
	$(GUIDE_INCLUDES) \
	$(GUIDE_XSLT) \
	$(GUIDE_FONTS) \
	$(GUIDE_STATIC) \
	dist/guide/html \
	dist/guide/links.html \
	dist/guide/index.html \
	doc/guide/directory.html \
	doc/guide/footer.html \
	doc/guide/version.in \
	$(NULL)

# we require fonts from `npm install` to build the docs
noinst_DATA += $(GUIDE_HTML($SKIP_NODE))

GUIDE_HTML = \
	dist/guide/html/index.html \
	dist/guide/index.html

MAINTAINERCLEANFILES += \
	dist/guide/html/* \
	dist/guide/links.html \
	dist/guide/index.html \
	*.tmp \
	$(NULL)

dist/guide/html/%.woff2: $(srcdir)/node_modules/@redhat/redhat-font/webfonts/RedHatText/%.woff2
	$(COPY_RULE)

dist/guide/html/index.html: $(GUIDE_DOCBOOK) $(GUIDE_INCLUDES) $(man_MANS) $(GUIDE_STATIC) $(GUIDE_XSLT) $(GUIDE_FONTS)
	$(AM_V_GEN) $(MKDIR_P) dist/guide/html/ && \
	cp $(addprefix $(srcdir)/,$(GUIDE_STATIC)) dist/guide/html/
	$(AM_V_GEN) LANG=C.UTF-8 $(XMLTO) html -m $(srcdir)/doc/guide/gtk-doc.xsl -o dist/guide/html/ \
		--searchpath $(abs_builddir):$(abs_srcdir):$(abs_builddir)/doc/guide \
		$(srcdir)/$(GUIDE_DOCBOOK)
	rm -f dist/guide/html/cockpit-guide.proc

dist/guide/html: dist/guide/html/index.html

dist/guide/links.html:
	$(AM_V_GEN) $(MKDIR_P) $(dir $@) && \
	(git -C $(srcdir) tag -l '[0-9]*' --sort=-version:refname --format \
		'<a href="./%(refname:strip=2)/">%(refname:strip=2)</a>' | head -n15 || true) > $@.tmp && \
	$(MV) $@.tmp $@

dist/guide/index.html: doc/guide/directory.html dist/guide/links.html doc/guide/footer.html
	$(CAT_RULE)

check-local::
	if grep -n -r 'name=\"id' dist/guide/html >&2; then \
		echo "Unexpected generated id in the documentation" >&2; \
		exit 1; \
	fi