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
|
include $(top_srcdir)/misc/common-makefile.am
SUBDIRS = . api clients configuration faq overview
CLEANFILES += \
header.html.part \
toplinks.html.part \
footer.html.part \
index.html.part \
news.html.part \
news.subst \
changelog.html.part \
changelog.subst \
index.html \
news.html \
changelog.html
EXTRA_DIST = \
header.html.part.in \
toplinks.html.part.in \
footer.html.part.in \
index.html.part.in \
news.html.part.in \
changelog.html.part.in \
paludis.css \
paludis_270.png \
paludis_64.png
paludishtmldir = $(htmldir)
paludishtml_DATA = \
index.html \
news.html \
changelog.html \
paludis.css \
paludis_270.png
dist_check_SCRIPTS = \
htmltidy.bash
if HAVE_HTMLTIDY
TESTS = $(paludishtml_DATA)
LOG_COMPILER_INTERP = $(top_srcdir)/doc/htmltidy.bash
endif
index.html : header.html.part index.html.part footer.html.part
cat header.html.part index.html.part footer.html.part > $@
news.html : header.html.part news.html.part footer.html.part
cat header.html.part news.html.part footer.html.part > $@
changelog.html : header.html.part changelog.html.part footer.html.part
cat header.html.part changelog.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
index.html.part : $(srcdir)/index.html.part.in
sed -e 's,###PALUDIS_VERSION###,$(VERSION_FULL),g' < $(srcdir)/index.html.part.in > index.html.part
news.html.part : $(srcdir)/news.html.part.in news.subst
sed \
-e '/###NEWS###/r news.subst' \
-e 's,###NEWS###,,' \
< $(srcdir)/news.html.part.in > news.html.part
changelog.html.part : $(srcdir)/changelog.html.part.in changelog.subst
sed \
-e '/###CHANGELOG###/r changelog.subst' \
-e 's,###CHANGELOG###,,' \
< $(srcdir)/changelog.html.part.in > changelog.html.part
news.subst : $(top_srcdir)/NEWS
sed \
-e 's,&,\&,g' \
-e 's,<,\<,g' \
-e 's,>,\>,g' \
< $(top_srcdir)/NEWS > news.subst
changelog.subst :
git --git-dir=$(top_srcdir)/.git log | sed \
-e 's,&,\&,g' \
-e 's,<,\<,g' \
-e 's,>,\>,g' \
-e 's,\([[:blank:][:punct:]]\)\?\([0-9a-f]\{40\}\)\([[:blank:][:punct:]]\)\?,\1<a href="http://git.pioto.org/?p=paludis.git;a=commit;h=\2">\2</a>,g' \
-e 's,ticket:\([0-9]\+\),<a href="http://trac.pioto.org/paludis/ticket/\1">ticket:\1</a>,g' \
> changelog.subst
documentation : doxygen epydoc htmldocs
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 : $(paludishtml_DATA)
doxygen :
$(MAKE) -C api $@
epydoc :
$(MAKE) -C api $@
|