X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=doc%2Fxml%2FUserGuide%2FMakefile.in;h=a152644cd334a44db3e8aed20edc328e3c07f1d1;hp=fe4fb91c69b3ca6c1c9ab737bb50c2dde5083692;hb=86053beac56629f7bdbc2695fda560e0410e430f;hpb=2520cc9aabef8877cdd99abb858dc011dfa5629f diff --git a/doc/xml/UserGuide/Makefile.in b/doc/xml/UserGuide/Makefile.in index fe4fb91..a152644 100644 --- a/doc/xml/UserGuide/Makefile.in +++ b/doc/xml/UserGuide/Makefile.in @@ -13,28 +13,48 @@ # HTML_XSL is possibly specific to Debian and may need to be modified on other # systems. -all: pdf html +BOOK = auusg000 + +all: $(BOOK).pdf index.html $(BOOK).epub $(BOOK).mobi include @TOP_OBJDIR@/src/config/Makefile.config -VERSFILE=version +VERSION=version include @TOP_OBJDIR@/src/config/Makefile.version -BOOK = auusg000.xml -SRCS = $(BOOK) auusg003.xml auusg004.xml auusg005.xml auusg006.xml \ +SRCS = $(BOOK).xml auusg003.xml auusg004.xml auusg005.xml auusg006.xml \ auusg007.xml auusg008.xml auusg009.xml auusg010.xml auusg011.xml \ - auusg012.xml + auusg012.xml $(VERSION).xml HTML_XSL = @HTML_XSL@ +DOCBOOK_STYLESHEETS = @DOCBOOK_STYLESHEETS@ XSLTPROC = @XSLTPROC@ +DOCBOOK2PDF = @DOCBOOK2PDF@ +DBTOEPUB = $(DOCBOOK_STYLESHEETS)/epub/bin/dbtoepub +KINDLEGEN = @KINDLEGEN@ -html: $(SRCS) $(VERSFILE).xml +index.html: $(SRCS) $(XSLTPROC) --param navig.graphics 1 \ - --stringparam navig.graphics.path ../ $(HTML_XSL) $(BOOK) + --stringparam navig.graphics.path ../ $(DOCBOOK_STYLESHEETS)/$(HTML_XSL) $(BOOK).xml + +$(BOOK).pdf: $(SRCS) + if test "x$(DOCBOOK2PDF)" = "xfop"; then \ + $(XSLTPROC) $(DOCBOOK_STYLESHEETS)/fo/docbook.xsl $(BOOK).xml > $(BOOK).fo; \ + $(DOCBOOK2PDF) $(BOOK).fo $(BOOK).pdf; \ + else \ + $(DOCBOOK2PDF) $(BOOK).xml; \ + fi + +$(BOOK).epub: $(SRCS) + if test -x "$(DBTOEPUB)" ; then \ + $(DBTOEPUB) -s $(TOP_SRCDIR)/../doc/xml/mobi-fixup.xsl $(BOOK).xml; \ + fi -pdf: $(SRCS) $(VERSFILE).xml - dblatex $(BOOK) +$(BOOK).mobi: $(BOOK).epub + if test -n "$(KINDLEGEN)" && test -x "$(DBTOEPUB)" ; then \ + $(KINDLEGEN) $(BOOK).epub -o $(BOOK).mobi; \ + fi check: - xmllint --noout --valid $(BOOK) + xmllint --noout --valid $(BOOK).xml clean: - rm -f *.html *.pdf + rm -f *.aux *.epub *.fo *.html *.log *.mobi *.out *.pdf