-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmake_doc.rules
35 lines (32 loc) · 938 Bytes
/
make_doc.rules
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
35
# some rules for generating various graphic files
%.pstex_t: %.fig
$(FIG2DEV) -Lpstex_t -p $*.pstex -m 1.000000 $< $@
%.pstex: %.fig
$(FIG2DEV) -Lpstex -m 1.000000 -n $*.pstex $< $*.pstex
%.ps: gnu_%.ps %.pslatex
sed "s/FILE/$*.pslatex/" $(top_srcdir)/doc/common/template.tex > $*.tex
latex $*.tex
dvips -o $@ $*
%.tex: %.pstex_t %.pstex
sed "s/FILE/$*.pstex_t/" $(top_srcdir)/doc/common/template.tex > $@
%.dvi: %.tex
latex $<
%.ps: %.dvi
dvips -o $@ $<
%.eps: %.ps
ps2epsi $< $@
%.eps: %.dia
$(DIA) -t eps-builtin -n -e $@ $<
%.pslatex gnu_%.ps: %.gp
$(GNUPLOT) $<
$(SED) 's#psfile=#psfile=gnu_#' $*.pslatex > .tmp
mv $*.ps gnu_$*.ps
mv .tmp $@
%.eps: %.svg
$(INKSCAPE) -z -f $< -E $@
%.ps: %.pdf
$(PDF2PS) $< $@
%.eps: %.png
$(CONVERT) $< $@
CLEANFILES = $(BUILT_SOURCES) *.pslatex *.dvi *.pstex *.pstex_t *.eps *.ps
SUFFIXES = .fig .pstex .pstex_t .eps .dia .gp .pslatex .ps .pdf .png