161
|
1 # -*- mode: makefile; tab-width: 4 -*-
|
|
2
|
|
3 ###### variables
|
|
4 sources = README Makefile makelogo gnuslogo.ps gnusref.tex \
|
|
5 quickref.tex refcard.tex booklet.tex bk-a4.tex bk-lt.tex
|
|
6 targets = quickref.ps refcard.ps $(bk-lt) $(bk-a4)
|
|
7 bk-lt = bk-lt-d.ps bk-lt-s1.ps bk-lt-s2.ps
|
|
8 bk-a4 = bk-a4-d.ps bk-a4-s1.ps bk-a4-s2.ps
|
|
9 x-lt = 10.8in
|
|
10 y-lt = 5.5in
|
|
11 x2-lt = -2.3in
|
|
12 y2-lt = 11.0in
|
|
13 x-a4 = 27.4cm
|
|
14 y-a4 = 14.85cm
|
|
15 x2-a4 = -6.3cm
|
|
16 y2-a4 = 29.7cm
|
|
17 first = -3L($(x-$*),0)+0L($(x-$*),$(y-$*))
|
|
18 second = 1R($(x2-$*),$(y2-$*))+-2R($(x2-$*),$(y-$*))
|
|
19 reverse = -1L($(x-$*),0)+2L($(x-$*),$(y-$*))
|
|
20
|
|
21 ###### user targets
|
|
22 all: $(targets)
|
|
23 quickref: quickref.ps
|
|
24 refcard: refcard.ps
|
|
25 booklet: bk-lt bk-a4
|
|
26 bk-lt: bk-lt-d bk-lt-s
|
|
27 bk-a4: bk-a4-d bk-a4-s
|
|
28 bk-lt-d: bk-lt-d.ps
|
|
29 bk-lt-s: bk-lt-s1.ps bk-lt-s2.ps
|
|
30 bk-a4-d: bk-a4-d.ps
|
|
31 bk-a4-s: bk-a4-s1.ps bk-a4-s2.ps
|
|
32 clean:
|
|
33 -rm -f *.dvi *.aux *.log *.toc gnuslogo.???* bk-??.ps $(targets)
|
|
34
|
|
35 ###### internal targets
|
|
36 quickref.ps: quickref.tex gnuslogo.quickref
|
|
37 latex quickref.tex
|
|
38 dvips quickref.dvi
|
|
39 refcard.ps: refcard.tex gnusref.tex gnuslogo.refcard
|
|
40 latex refcard.tex
|
|
41 dvips refcard.dvi
|
|
42 bk-lt.ps bk-a4.ps: bk-%.ps: bk-%.tex booklet.tex gnusref.tex gnuslogo.booklet
|
|
43 latex bk-$*.tex; latex bk-$*.tex # twice to make the TOC
|
|
44 dvips bk-$*.dvi
|
|
45 gnuslogo.quickref gnuslogo.refcard gnuslogo.booklet: gnuslogo.%: gnuslogo.ps
|
|
46 ./makelogo $*
|
|
47 bk-lt-d.ps bk-a4-d.ps: bk-%-d.ps: bk-%.ps
|
|
48 pstops '4:$(first),$(second)' bk-$*.ps bk-$*-d.ps
|
|
49 bk-lt-s1.ps bk-a4-s1.ps: bk-%-s1.ps: bk-%.ps
|
|
50 pstops '4:$(first)' bk-$*.ps bk-$*-s1.ps
|
|
51 bk-lt-s2.ps bk-a4-s2.ps: bk-%-s2.ps: bk-%.ps
|
|
52 pstops '4:$(reverse)' bk-$*.ps bk-$*-s2.ps
|
|
53
|
|
54 dist = /usr/menaik/ftp/pub/oolog/gnus
|
|
55 dist: $(sources) $(targets)
|
|
56 -mkdir $(dist);
|
|
57 -rm -f $(dist)/*
|
|
58 tar cf - $(sources) | gzip > $(dist)/gnusref.tar.gz
|
|
59 for F in $(targets); do gzip -c $$F > $(dist)/$$F.gz; done
|
|
60 cp README $(dist)/README
|
|
61 chmod ogu+r $(dist) $(dist)/*
|
|
62 ls -l $(dist)
|