Prompted by the desire to make the build reproducible, which seems
unreasonably hard with debiandoc2ps.
This approach was suggested here as a workaround for another bug:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=285885#35
At some point we may want to do a one-off source conversion to
DocBook.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
build
build-arch
+spec.dbk
spec.tex
spec.html
-spec.ps
+spec.pdf
To format the documentation:
* debiandoc-sgml, and hence sp (aka nsgmls) and sgmlspm.
-* For PostScript output, Lout and possibly psutils.
+* For PostScript output, dblatex and XeTeX.
For debugging version (./configure --enable-debug):
docdir=$(share_prefix)/doc/userv
TARGETS= daemon client
-TARGETS_DOC_PS= spec.ps overview.ps
+TARGETS_DOC_PS= spec.pdf overview.ps
TARGETS_DOC_RM= $(TARGETS_DOC_PS) spec.html
TARGETS_DOC= $(TARGETS_DOC_PS) spec.html/index.html
MAN1PAGES= userv.1
linecount: $(SOURCES)
wc -l $^
+%.dbk: %.sgml
+ debiandoc2dbk -1 $<
+
%.html/index.html: %.sgml
debiandoc2html $<
-%.ps: %.sgml
- debiandoc2ps -1 -O $< >$@.new && mv $@.new $@
+%.pdf: %.dbk
+ dblatex -b xetex $<
+ mv -f $<.pdf $@
%.ps: %.fig
fig2dev -L ps -c -l dummy -P -z A4 $< >$@.new && mv $@.new $@
Section: admin
Priority: optional
Maintainer: Ian Jackson <ijackson@chiark.greenend.org.uk>
-Build-Depends: debiandoc-sgml, transfig, texlive, texlive-latex-extra, debhelper (>= 5)
+Build-Depends: debiandoc-sgml, transfig, dblatex, texlive-xetex, debhelper (>= 5)
Standards-Version: 3.9.1
Package: userv