# process documentation and produce HTML and PDF
# go to build directory, type make && make -f $top_srcdir/GMakefile.doc
#
FILES:=applyfilter.8 \
checkgroups.8 \
fetchnews.8 \
leafnode-version.1 \
leafnode.8 \
newsq.1 \
texpire.8
%.html: %
groff -Thtml -man $< >$@
%.ps: %
groff -Tps -man $< >$@
%.uopdf: %.ps
gs -dSAFER -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite \
-sOutputFile=$@ -dSAFER -dCompatibilityLevel=1.3 \
-c .setpdfwrite -f $<
%.pdf: %.uopdf
pdfopt $< $@
HTML:=$(FILES:%=%.html)
PDF:=$(HTML:.html=.pdf)
.PHONY: all clean
all: $(HTML) $(PDF)
clean:
rm -f $(HTML) $(PDF)
syntax highlighted by Code2HTML, v. 0.9.1