blob: c9b7a844bfcce7d372981b617187984f1d30d253 (
plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
#*=====================================================================*/
#* serrano/prgm/project/skribe/examples/slide/Makefile */
#* ------------------------------------------------------------- */
#* Author : Manuel Serrano */
#* Creation : Fri Jan 11 10:19:46 2002 */
#* Last change : Thu Dec 18 09:21:41 2003 (serrano) */
#* Copyright : 2002-03 Manuel Serrano */
#* ------------------------------------------------------------- */
#* The Makefile to build the Slides example */
#*=====================================================================*/
include ../../etc/Makefile.config
include ../../etc/$(SYSTEM)/Makefile.skb
#*---------------------------------------------------------------------*/
#* Compiler and tools */
#*---------------------------------------------------------------------*/
BINDIR = ../../bin
LIBDIR = ../../lib
#*---------------------------------------------------------------------*/
#* Compilers and Tools */
#*---------------------------------------------------------------------*/
SFLAGS = -I txt -I skr -I skb -I ../../skr
LATEX = latex
DVIPS = dvips -Ppdf -G0
TEXHOME = $$HOME/tex
PS2PDF = ps2pdf -dPDFSETTINGS=/prepress -sPAPERSIZE=a4
MODE = advi
#*---------------------------------------------------------------------*/
#* Skribe variables */
#*---------------------------------------------------------------------*/
SKRIBEVARS = --eval "(define *mode* '$(MODE))"
#*---------------------------------------------------------------------*/
#* Sources */
#*---------------------------------------------------------------------*/
MASTER = skb/slides.skb
INPUTSNAME =
EXNAME = skribe.skb syntax.scr
INPUTS = $(INPUTSNAME:%=skb/%.skb) $(EXNAME:%=ex/%)
SOURCESNAME =
SOURCES = $(SOURCESNAME:%=scm/%.scm)
STYLES = local
LSTYLES = $(STYLE:%=skr/%.skr)
FIGS_SOURCES =
FIGURES = $(FIGS_SOURCES:%=fig/%.eps) $(FIGS_SOURCES:%=fig/%.png)
#*---------------------------------------------------------------------*/
#* Suffixes */
#*---------------------------------------------------------------------*/
.SUFFIXES:
.SUFFIXES: .skb .skr .eps .fig .tex .ps .pdf .png .html .dvi
#*---------------------------------------------------------------------*/
#* All */
#*---------------------------------------------------------------------*/
all: ps html
ps: slides.ps
slides.ps: slides.dvi
$(DVIPS) -o slides.ps slides.dvi
pdf: slides.pdf
slides.pdf: slides.ps
$(PS2PDF) slides.ps slides.pdf
dvi: slides.dvi
slides.dvi: slides.tex
$(LATEX) slides.tex
slides.tex: $(MASTER) $(INPUTS) $(LSTYLES) $(SOURCES) $(FIGURES)
$(SKRIBE) $(SKRIBEVARS) $(SFLAGS) $(MASTER) -o slides.tex
html: slides.html
slides.html: $(MASTER) $(INPUTS) $(LSTYLES) $(SOURCES) $(FIGURES)
$(SKRIBE) $(SKRIBEVARS) $(SFLAGS) $(MASTER) -o slides.html
text: slides.text
slides.text: $(MASTER) $(INPUTS) $(LSTYLES) $(SOURCES) $(FIGURES)
$(SKRIBE) $(SKRIBEVARS) $(SFLAGS) $(MASTER) -t text -o slides.text
#*---------------------------------------------------------------------*/
#* pop */
#*---------------------------------------------------------------------*/
.PHONY: pop
pop:
@ echo examples/slide/Makefile \
examples/slide/README \
examples/slide/advi.sty \
examples/slide/PPRskribe.sty \
examples/slide/skr/local.skr
@ echo $(MASTER:%=examples/slide/%)
@ echo $(EXNAME:%=examples/slide/ex/%)
#*---------------------------------------------------------------------*/
#* binary */
#*---------------------------------------------------------------------*/
getbinary:
echo "slides"
#*---------------------------------------------------------------------*/
#* re */
#*---------------------------------------------------------------------*/
.PHONY: re re.ps re.html
re: re.ps re.html
re.ps:
touch -m -d 0 slides.tex
$(MAKE) ps
re.html:
touch -m -d 0 slides.html
$(MAKE) html
#*---------------------------------------------------------------------*/
#* .eps.png */
#*---------------------------------------------------------------------*/
.eps.png:
@ echo $*.png:
@ convert $*.eps $*.png
#*---------------------------------------------------------------------*/
#* .eps.fig */
#*---------------------------------------------------------------------*/
.fig.eps:
@ echo $*.fig:
@ fig2dev -L eps $*.fig > $*.eps
#*---------------------------------------------------------------------*/
#* Clean */
#*---------------------------------------------------------------------*/
clean:
-/bin/rm -f slides.tex 2> /dev/null
-/bin/rm -f slides.dvi 2> /dev/null
-/bin/rm -f *.aux *.log 2> /dev/null
-/bin/rm -f *~ 2> /dev/null
-/bin/rm -f */*~ 2> /dev/null
-/bin/rm -f */*/*~ 2> /dev/null
-/bin/rm -f slides.ps 2> /dev/null
-/bin/rm -f slides.pdf 2> /dev/null
-/bin/rm -f slides*.html 2> /dev/null
-/bin/rm -f slides.text 2> /dev/null
-/bin/rm -f slides.out 2> /dev/null
-/bin/rm -f $(FIGURES)
cleanall: clean
|