aboutsummaryrefslogtreecommitdiff
path: root/doc/overview/Makefile.am
blob: 7b602d7b5e08746d07c7fbfa6c48dd79154031d8 (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
include $(top_srcdir)/misc/common-makefile.am

SUBDIRS = .

CLEANFILES += \
	header.html.part \
	toplinks.html.part \
	footer.html.part \
	features.html \
	gettingstarted.html \
	contact.html \
	pbins.html \
	index.html

EXTRA_DIST = \
	toplinks.html.part.in \
	index.html.part \
	features.html.part \
	gettingstarted.html.part \
	pbins.html.part \
	contact.html.part

paludisoverviewhtmldir = $(htmldir)/overview

paludisoverviewhtml_DATA = \
	index.html \
	features.html \
	gettingstarted.html \
	contact.html \
	pbins.html

if HAVE_HTMLTIDY

TESTS = $(paludisoverviewhtml_DATA)
LOG_COMPILER_INTERP = $(top_srcdir)/doc/htmltidy.bash

endif

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

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

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

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

pbins.html : header.html.part $(srcdir)/pbins.html.part footer.html.part
	cat header.html.part $(srcdir)/pbins.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

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 : $(paludisoverviewhtml_DATA)