2003-02-19 08:19:51 +00:00
|
|
|
docdir = @docdir@
|
2004-11-27 13:03:41 +00:00
|
|
|
EXTRA_DIST = Doxyfile.in mainpage.doxy manual.docbook manual.README
|
2004-03-24 20:05:57 +00:00
|
|
|
|
2004-11-27 13:03:41 +00:00
|
|
|
dist_man_MANS = capisuite.8 capisuite.conf.5 fax.conf.5 answering_machine.conf.5 capisuitefax.1
|
2003-02-19 08:19:51 +00:00
|
|
|
|
2003-04-25 23:38:49 +00:00
|
|
|
# dist-hook may be not portable partly, so non-SuSE-users please
|
|
|
|
# forgive me and don't call "make dist" or send me a patch ;-)
|
|
|
|
|
2004-11-27 13:03:41 +00:00
|
|
|
dist-hook: manual-prepare manual-html reference-html capisuite.8 capisuite.conf.5 fax.conf.5 answering_machine.conf.5 capisuitefax.1 manual-pdf
|
2003-04-25 23:38:49 +00:00
|
|
|
mkdir $(distdir)/manual
|
|
|
|
cp -r $(srcdir)/manual/* $(distdir)/manual/
|
|
|
|
mkdir $(distdir)/reference
|
|
|
|
cp $(srcdir)/reference/* $(distdir)/reference/
|
|
|
|
cp manual.pdf $(distdir)/
|
|
|
|
|
2004-05-18 12:36:59 +00:00
|
|
|
# force recreation of complete manual for dist
|
2004-11-27 13:03:41 +00:00
|
|
|
recreatedoc:
|
|
|
|
touch manual.docbook
|
2004-05-18 12:36:59 +00:00
|
|
|
|
2004-11-27 13:03:41 +00:00
|
|
|
manual-prepare: recreatedoc
|
2003-04-25 23:38:49 +00:00
|
|
|
sed -e 's,<title>CapiSuite [0-9a-z\.]*</title>,<title>CapiSuite $(VERSION)</title>,g' \
|
2004-11-27 13:03:41 +00:00
|
|
|
manual.docbook > manual.docbook.new
|
|
|
|
mv manual.docbook.new manual.docbook
|
2003-04-25 23:38:49 +00:00
|
|
|
xmllint --noout --valid manual.docbook
|
2004-02-25 22:37:55 +00:00
|
|
|
|
2004-05-18 12:36:59 +00:00
|
|
|
manual-html: manual.docbook
|
2004-03-07 12:25:07 +00:00
|
|
|
xsltproc --stringparam profile.condition html -o manual-profiled.docbook \
|
2004-03-24 20:04:27 +00:00
|
|
|
/usr/share/xml/docbook/stylesheet/nwalsh/current/profiling/profile.xsl \
|
2004-03-07 12:25:07 +00:00
|
|
|
manual.docbook
|
|
|
|
xsltproc --stringparam chunker.output.encoding UTF-8 \
|
|
|
|
--stringparam chunker.output.doctype-public "-//W3C//DTD XHTML 1.0 Transitional//EN" \
|
|
|
|
--stringparam chunker.output.doctype-system "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" \
|
2004-03-24 20:04:27 +00:00
|
|
|
-o manual/ /usr/share/xml/docbook/stylesheet/nwalsh/current/xhtml/chunk.xsl manual-profiled.docbook
|
2004-02-25 22:37:55 +00:00
|
|
|
rm manual-profiled.docbook
|
2004-03-24 20:04:27 +00:00
|
|
|
cp -r /usr/share/xml/docbook/stylesheet/nwalsh/current/images/ manual/ # missing images...
|
2003-04-25 23:38:49 +00:00
|
|
|
if test ! -d manual/images/callouts; then \
|
|
|
|
echo "manual pages weren't created succesful." ;\
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
|
2004-05-18 12:36:59 +00:00
|
|
|
capisuite.8 capisuite.conf.5 fax.conf.5 answering_machine.conf.5 capisuitefax.1: manual.docbook
|
|
|
|
xsltproc --stringparam profile.condition man -o manual-profiled.docbook \
|
|
|
|
/usr/share/xml/docbook/stylesheet/nwalsh/current/profiling/profile.xsl \
|
|
|
|
manual.docbook
|
|
|
|
xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl \
|
|
|
|
manual-profiled.docbook
|
2004-02-25 22:37:55 +00:00
|
|
|
rm manual-profiled.docbook
|
|
|
|
|
2004-05-18 12:36:59 +00:00
|
|
|
manual-pdf: manual.docbook
|
|
|
|
xsltproc --stringparam profile.condition pdf -o manual.xml \
|
|
|
|
/usr/share/xml/docbook/stylesheet/nwalsh/current/profiling/profile.xsl \
|
|
|
|
manual.docbook
|
2003-04-25 23:38:49 +00:00
|
|
|
db2pdf manual.xml
|
2004-02-25 22:37:55 +00:00
|
|
|
-rm CATALOG.local manual.aux manual.log manual.out manual.tex suse-*.dsl manual.xml
|
2003-04-25 23:38:49 +00:00
|
|
|
|
|
|
|
reference-html: Doxyfile.in
|
2004-02-20 12:48:14 +00:00
|
|
|
sed -e 's,@VERSION\@,$(VERSION),g' \
|
2003-04-09 14:25:50 +00:00
|
|
|
-e 's,@capisuite_sources\@,$(top_srcdir)/src,g' \
|
2004-02-20 12:48:14 +00:00
|
|
|
-e 's,@docbuilddir\@,.,g' \
|
2003-04-09 14:25:50 +00:00
|
|
|
-e 's,@srcdir\@,$(srcdir),g' Doxyfile.in > Doxyfile
|
2003-02-19 08:19:51 +00:00
|
|
|
$(doxygen) Doxyfile
|
2003-03-09 12:36:02 +00:00
|
|
|
if test ! -d reference; then \
|
|
|
|
echo "Creation of reference didn't succeed. Please install doxygen and try again" ;\
|
|
|
|
exit 1; \
|
|
|
|
fi
|
2003-04-09 14:25:50 +00:00
|
|
|
rm Doxyfile
|
2003-04-25 23:38:49 +00:00
|
|
|
|
2003-02-19 08:19:51 +00:00
|
|
|
install-data-local:
|
2003-03-06 09:27:02 +00:00
|
|
|
if test -d reference; then \
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(docdir)/reference ; \
|
|
|
|
(cd reference; for i in *; do \
|
|
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(docdir)/reference/$$i ;\
|
|
|
|
done;) ;\
|
|
|
|
fi
|
|
|
|
if test -d manual; then \
|
2003-03-09 12:36:02 +00:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(docdir) ; \
|
|
|
|
cp -r manual $(DESTDIR)$(docdir)/ ; \
|
2003-03-06 09:27:02 +00:00
|
|
|
fi
|
2003-04-25 23:38:49 +00:00
|
|
|
if test -f manual.pdf; then \
|
|
|
|
cp manual.pdf $(DESTDIR)$(docdir)/ ; \
|
|
|
|
fi
|
2003-02-19 08:19:51 +00:00
|
|
|
|
|
|
|
uninstall-local:
|
2004-05-18 12:36:59 +00:00
|
|
|
-rm -rf $(DESTDIR)$(docdir)
|
2003-02-19 08:19:51 +00:00
|
|
|
|
|
|
|
maintainer-clean-local:
|
2004-05-18 12:36:59 +00:00
|
|
|
-rm -rf reference manual manual.pdf *.[1-9]
|
|
|
|
|