aboutsummaryrefslogtreecommitdiff
path: root/doc/api/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/Makefile.am')
-rw-r--r--doc/api/Makefile.am35
1 files changed, 34 insertions, 1 deletions
diff --git a/doc/api/Makefile.am b/doc/api/Makefile.am
index 92a7f342d..4c8615843 100644
--- a/doc/api/Makefile.am
+++ b/doc/api/Makefile.am
@@ -1,8 +1,41 @@
SUBDIRS = cplusplus python ruby .
-CLEANFILES = *~ gmon.out *.gcov *.gcno *.gcda
+CLEANFILES = *~ gmon.out *.gcov *.gcno *.gcda \
+ header.html.part \
+ toplinks.html.part \
+ footer.html.part \
+ index.html
+
+EXTRA_DIST = \
+ toplinks.html.part.in \
+ index.html.part
+
MAINTAINERCLEANFILES = Makefile.in
+paludisapihtmldir = $(htmldir)/api
+
+paludisapihtml_DATA = \
+ index.html
+
+index.html : header.html.part index.html.part footer.html.part
+ cat header.html.part index.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