File: GMakefile.doc

package info (click to toggle)
leafnode 1.11.11-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,468 kB
  • sloc: ansic: 10,914; sh: 1,748; xml: 628; makefile: 291; perl: 84; sed: 4
file content (34 lines) | stat: -rw-r--r-- 598 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 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)