aboutsummaryrefslogtreecommitdiff
path: root/doc/configuration/Makefile.am
blob: 167c9672bc08895dca71780b1403759ff23c922f (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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
SUBDIRS = .

CLEANFILES = *~ gmon.out *.gcov *.gcno *.gcda \
	header.html.part \
	toplinks.html.part \
	footer.html.part \
	index.html \
	hooks.html \
	syncers.html.part \
	syncers.html \
	fetchers.html.part \
	fetchers.html \
	envvars.html \
	synclist \
	fetchlist \
	specpath.html \
	specpath.html.part \
	environment.html \
	environment.html.part \
	keywords.html \
	keywords.html.part \
	packagemask.html \
	packagemask.html.part \
	use.html \
	use.html.part \
	licenses.html \
	licenses.html.part \
	mirrors.html \
	mirrors.html.part \
	bashrc.html \
	bashrc.html.part \
	sets.html \
	sets.html.part \
	configfiles.html \
	specs.html

MAINTAINERCLEANFILES = Makefile.in

EXTRA_DIST = \
	toplinks.html.part.in \
	index.html.part \
	hooks.html.part \
	syncers.html.part.in \
	fetchers.html.part.in \
	envvars.html.part \
	specpath.html.part.in \
	environment.html.part.in \
	keywords.html.part.in \
	packagemask.html.part.in \
	licenses.html.part.in \
	mirrors.html.part.in \
	bashrc.html.part.in \
	use.html.part.in \
	paludisenvironmentonly.html.part \
	configfiles.html.part \
	specs.html.part \
	sets.html.part.in

paludisconfigurationhtmldir = $(htmldir)/configuration

paludisconfigurationhtml_DATA = \
	index.html \
	hooks.html \
	syncers.html \
	fetchers.html \
	envvars.html \
	specpath.html \
	environment.html \
	keywords.html \
	packagemask.html \
	mirrors.html \
	bashrc.html \
	licenses.html \
	use.html \
	configfiles.html \
	specs.html \
	sets.html

index.html : header.html.part $(srcdir)/index.html.part footer.html.part
	cat header.html.part $(srcdir)/index.html.part footer.html.part > $@

specs.html : header.html.part $(srcdir)/specs.html.part footer.html.part
	cat header.html.part $(srcdir)/specs.html.part footer.html.part > $@

configfiles.html : header.html.part $(srcdir)/configfiles.html.part footer.html.part
	cat header.html.part $(srcdir)/configfiles.html.part footer.html.part > $@

envvars.html : header.html.part $(srcdir)/envvars.html.part footer.html.part
	cat header.html.part $(srcdir)/envvars.html.part footer.html.part > $@

synclist :
	find $(top_srcdir)/paludis/syncers $(top_builddir)/paludis/syncers -type f \
	    | while read a ; do \
		basename $$a ; \
	done | sort -u | \
	while read a ; do \
		if echo $$a | grep '.in$$' >/dev/null ; then \
			: ; \
		elif ! echo $$a | grep '^do' >/dev/null ; then \
			: ; \
		elif echo $$a | grep 'svn-base$$' >/dev/null ; then \
			: ; \
		else \
			echo "<strong>$$a</strong>" | sed -e 's/>do/>/' ; \
			if test -f $(top_builddir)/paludis/syncers/$$a ; then \
				env PALUDIS_EBUILD_DIR="$(top_srcdir)/paludis/repositories/e/ebuild" \
					bash $(top_builddir)/paludis/syncers/$$a --help || exit 1 ; \
			else \
				env PALUDIS_EBUILD_DIR="$(top_srcdir)/paludis/repositories/e/ebuild" \
					bash $(top_srcdir)/paludis/syncers/$$a --help || exit 1 ; \
			fi ; \
			echo ; \
		fi ; \
	done > synclist

fetchlist :
	find $(top_srcdir)/paludis/fetchers $(top_builddir)/paludis/fetchers -type f \
	    | while read a ; do \
		basename $$a ; \
	done | sort -u | \
	while read a ; do \
		if echo $$a | grep '.in$$' >/dev/null ; then \
			: ; \
		elif ! echo $$a | grep '^do' >/dev/null ; then \
			: ; \
		elif echo $$a | grep 'svn-base$$' >/dev/null ; then \
			: ; \
		else \
			echo "<li>$$a</li>" | sed -e 's/>do/>/' ; \
		fi ; \
	done > fetchlist

syncers.html.part : $(srcdir)/syncers.html.part.in synclist
	sed \
	    -e '/###SYNCERS###/r synclist' \
	    -e 's,###SYNCERS###,,g' \
	    < $(srcdir)/syncers.html.part.in > syncers.html.part

specpath.html.part : $(srcdir)/specpath.html.part.in $(srcdir)/paludisenvironmentonly.html.part
	sed \
	    -e '/###PALUDISENVIRONMENTONLY###/r $(srcdir)/paludisenvironmentonly.html.part' \
	    -e 's,###PALUDISENVIRONMENTONLY###,,g' \
	    < $(srcdir)/specpath.html.part.in > specpath.html.part

environment.html.part : $(srcdir)/environment.html.part.in $(srcdir)/paludisenvironmentonly.html.part
	sed \
	    -e '/###PALUDISENVIRONMENTONLY###/r $(srcdir)/paludisenvironmentonly.html.part' \
	    -e 's,###PALUDISENVIRONMENTONLY###,,g' \
	    < $(srcdir)/environment.html.part.in > environment.html.part

keywords.html.part : $(srcdir)/keywords.html.part.in $(srcdir)/paludisenvironmentonly.html.part
	sed \
	    -e '/###PALUDISENVIRONMENTONLY###/r $(srcdir)/paludisenvironmentonly.html.part' \
	    -e 's,###PALUDISENVIRONMENTONLY###,,g' \
	    < $(srcdir)/keywords.html.part.in > keywords.html.part

packagemask.html.part : $(srcdir)/packagemask.html.part.in $(srcdir)/paludisenvironmentonly.html.part
	sed \
	    -e '/###PALUDISENVIRONMENTONLY###/r $(srcdir)/paludisenvironmentonly.html.part' \
	    -e 's,###PALUDISENVIRONMENTONLY###,,g' \
	    < $(srcdir)/packagemask.html.part.in > packagemask.html.part

mirrors.html.part : $(srcdir)/mirrors.html.part.in $(srcdir)/paludisenvironmentonly.html.part
	sed \
	    -e '/###PALUDISENVIRONMENTONLY###/r $(srcdir)/paludisenvironmentonly.html.part' \
	    -e 's,###PALUDISENVIRONMENTONLY###,,g' \
	    < $(srcdir)/mirrors.html.part.in > mirrors.html.part

bashrc.html.part : $(srcdir)/bashrc.html.part.in $(srcdir)/paludisenvironmentonly.html.part
	sed \
	    -e '/###PALUDISENVIRONMENTONLY###/r $(srcdir)/paludisenvironmentonly.html.part' \
	    -e 's,###PALUDISENVIRONMENTONLY###,,g' \
	    < $(srcdir)/bashrc.html.part.in > bashrc.html.part

sets.html.part : $(srcdir)/sets.html.part.in $(srcdir)/paludisenvironmentonly.html.part
	sed \
	    -e '/###PALUDISENVIRONMENTONLY###/r $(srcdir)/paludisenvironmentonly.html.part' \
	    -e 's,###PALUDISENVIRONMENTONLY###,,g' \
	    < $(srcdir)/sets.html.part.in > sets.html.part

licenses.html.part : $(srcdir)/licenses.html.part.in $(srcdir)/paludisenvironmentonly.html.part
	sed \
	    -e '/###PALUDISENVIRONMENTONLY###/r $(srcdir)/paludisenvironmentonly.html.part' \
	    -e 's,###PALUDISENVIRONMENTONLY###,,g' \
	    < $(srcdir)/licenses.html.part.in > licenses.html.part

use.html.part : $(srcdir)/use.html.part.in $(srcdir)/paludisenvironmentonly.html.part
	sed \
	    -e '/###PALUDISENVIRONMENTONLY###/r $(srcdir)/paludisenvironmentonly.html.part' \
	    -e 's,###PALUDISENVIRONMENTONLY###,,g' \
	    < $(srcdir)/use.html.part.in > use.html.part

fetchers.html.part : $(srcdir)/fetchers.html.part.in fetchlist
	sed \
	    -e '/###FETCHERS###/r fetchlist' \
	    -e 's,###FETCHERS###,,g' \
	    < $(srcdir)/fetchers.html.part.in > fetchers.html.part

environment.html : header.html.part environment.html.part footer.html.part
	cat header.html.part environment.html.part footer.html.part > $@

keywords.html : header.html.part keywords.html.part footer.html.part
	cat header.html.part keywords.html.part footer.html.part > $@

packagemask.html : header.html.part packagemask.html.part footer.html.part
	cat header.html.part packagemask.html.part footer.html.part > $@

mirrors.html : header.html.part mirrors.html.part footer.html.part
	cat header.html.part mirrors.html.part footer.html.part > $@

bashrc.html : header.html.part bashrc.html.part footer.html.part
	cat header.html.part bashrc.html.part footer.html.part > $@

sets.html : header.html.part sets.html.part footer.html.part
	cat header.html.part sets.html.part footer.html.part > $@

licenses.html : header.html.part licenses.html.part footer.html.part
	cat header.html.part licenses.html.part footer.html.part > $@

use.html : header.html.part use.html.part footer.html.part
	cat header.html.part use.html.part footer.html.part > $@

specpath.html : header.html.part specpath.html.part footer.html.part
	cat header.html.part specpath.html.part footer.html.part > $@

syncers.html : header.html.part syncers.html.part footer.html.part
	cat header.html.part syncers.html.part footer.html.part > $@

fetchers.html : header.html.part fetchers.html.part footer.html.part
	cat header.html.part fetchers.html.part footer.html.part > $@

hooks.html : header.html.part $(srcdir)/hooks.html.part footer.html.part
	cat header.html.part $(srcdir)/hooks.html.part footer.html.part > $@

header.html.part : $(srcdir)/../header.html.part.in toplinks.html.part
	sed \
	    -e 's,###TOPURI###,../,g' \
	    -e '/###TOPLINKS###/r $(srcdir)/toplinks.html.part' \
	    -e 's,###TOPLINKS###,,g' \
	    < $(srcdir)/../header.html.part.in > header.html.part

toplinks.html.part : $(srcdir)/toplinks.html.part.in
	sed \
	    -e 's,###TOPURI###,../,g' \
	    < $(srcdir)/toplinks.html.part.in > toplinks.html.part

footer.html.part : $(srcdir)/../footer.html.part.in
	sed -e 's,###TOPURI###,./,g' < $(srcdir)/../footer.html.part.in > footer.html.part

built-sources : $(BUILT_SOURCES)
	for s in `echo $(SUBDIRS) | tr -d .` ; do $(MAKE) -C $$s built-sources || exit 1 ; done

distcheck-deps : $(DISTCHECK_DEPS) distcheck-deps-subdirs

distcheck-deps-subdirs :
	for s in `echo $(DIST_SUBDIRS) | tr -d .` ; do $(MAKE) -C $$s distcheck-deps || exit 1 ; done

htmldocs : htmldocs-subdirs

htmldocs-subdirs :
	for s in $(SUBDIRS) . ; do if test x$$s = x. ; then $(MAKE) htmldocs-local || exit 1 ; \
	    else $(MAKE) -C $$s htmldocs || exit 1 ; fi ; done

htmldocs-local : $(paludisconfigurationhtml_DATA)