aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-10-20 14:45:28 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-10-20 14:45:28 +0000
commit5ae77ee4a663ab8d9f48e2cd4b157a11db884db7 (patch)
tree666c58a3387dc516905d1f577f95e75a48c816ae
parent6e7a1dbf372383baab2ed2b2ba3b2f027e3efd1f (diff)
downloadpaludis-5ae77ee4a663ab8d9f48e2cd4b157a11db884db7.tar.gz
paludis-5ae77ee4a663ab8d9f48e2cd4b157a11db884db7.tar.xz
Build client docs too
-rw-r--r--configure.ac9
-rw-r--r--doc/clients/Makefile.am83
2 files changed, 90 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index e93cb36..e04d78c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1040,6 +1040,14 @@ dnl }}}
dnl {{{ clients
ALL_CLIENTS="accerso adjutrix contrarius gtkpaludis importare inquisitio instruo paludis qualudis reconcilio"
+ALL_CLIENTS_HTML=""
+for a in $ALL_CLIENTS ; do
+ if test x"$a" = "xgtkpaludis" ; then
+ ALL_CLIENTS_HTML="$ALL_CLIENTS_HTML"
+ else
+ ALL_CLIENTS_HTML="$ALL_CLIENTS_HTML $a.html"
+ fi
+done
DEFAULT_CLIENTS="adjutrix paludis reconcilio"
if test x"$ENABLE_QA" = "xyes" ; then
DEFAULT_CLIENTS="$DEFAULT_CLIENTS qualudis"
@@ -1071,6 +1079,7 @@ clients=`echo $clients | tr ' ' '\n' \
AC_MSG_RESULT([$clients])
BUILD_CLIENTS="$clients"
AC_SUBST([ALL_CLIENTS])
+AC_SUBST([ALL_CLIENTS_HTML])
AC_SUBST([BUILD_CLIENTS])
if echo $clients | tr ' ' '\n' | grep '^inquisitio$' >/dev/null ; then
diff --git a/doc/clients/Makefile.am b/doc/clients/Makefile.am
index 7bfb6c5..c08227b 100644
--- a/doc/clients/Makefile.am
+++ b/doc/clients/Makefile.am
@@ -1,7 +1,86 @@
SUBDIRS = .
-CLEANFILES = *~ gmon.out *.gcov *.gcno *.gcda
-MAINTAINERCLEANFILES = Makefile.in
+CLEANFILES = *~ gmon.out *.gcov *.gcno *.gcda \
+ header.html.part \
+ toplinks.html.part \
+ footer.html.part
+
+MAINTAINERCLEANFILES = Makefile.in \
+ $(ALL_CLIENTS_HTML)
+
+EXTRA_DIST = \
+ $(ALL_CLIENTS_HTML) \
+ toplinks.html.part.in \
+ index.html.part
+
+paludisclientshtmldir = $(htmldir)/clients
+
+paludisclientshtml_DATA = \
+ index.html \
+ $(ALL_CLIENTS_HTML)
+
+index.html : header.html.part index.html.part footer.html.part
+ cat header.html.part index.html.part footer.html.part > $@
+
+paludis.html : header.html.part $(top_builddir)/src/clients/paludis/man-paludis footer.html.part
+ { cat header.html.part && \
+ $(top_builddir)/src/clients/paludis/man-paludis --html && \
+ cat footer.html.part ; } > $@
+
+accerso.html : header.html.part $(top_builddir)/src/clients/accerso/man-accerso footer.html.part
+ { cat header.html.part && \
+ $(top_builddir)/src/clients/accerso/man-accerso --html && \
+ cat footer.html.part ; } > $@
+
+adjutrix.html : header.html.part $(top_builddir)/src/clients/adjutrix/man-adjutrix footer.html.part
+ { cat header.html.part && \
+ $(top_builddir)/src/clients/adjutrix/man-adjutrix --html && \
+ cat footer.html.part ; } > $@
+
+contrarius.html : header.html.part $(top_builddir)/src/clients/contrarius/man-contrarius footer.html.part
+ { cat header.html.part && \
+ $(top_builddir)/src/clients/contrarius/man-contrarius --html && \
+ cat footer.html.part ; } > $@
+
+importare.html : header.html.part $(top_builddir)/src/clients/importare/man-importare footer.html.part
+ { cat header.html.part && \
+ $(top_builddir)/src/clients/importare/man-importare --html && \
+ cat footer.html.part ; } > $@
+
+inquisitio.html : header.html.part $(top_builddir)/src/clients/inquisitio/man-inquisitio footer.html.part
+ { cat header.html.part && \
+ $(top_builddir)/src/clients/inquisitio/man-inquisitio --html && \
+ cat footer.html.part ; } > $@
+
+instruo.html : header.html.part $(top_builddir)/src/clients/instruo/man-instruo footer.html.part
+ { cat header.html.part && \
+ $(top_builddir)/src/clients/instruo/man-instruo --html && \
+ cat footer.html.part ; } > $@
+
+qualudis.html : header.html.part $(top_builddir)/src/clients/qualudis/man-qualudis footer.html.part
+ { cat header.html.part && \
+ $(top_builddir)/src/clients/qualudis/man-qualudis --html && \
+ cat footer.html.part ; } > $@
+
+reconcilio.html : header.html.part $(top_builddir)/src/clients/reconcilio/man-reconcilio footer.html.part
+ { cat header.html.part && \
+ $(top_builddir)/src/clients/reconcilio/man-reconcilio --html && \
+ cat 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