blob: 6b31523e492cb35a679e30a2be515fbf8a2cf00d (
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
|
##################
# Setup commands #
##################
CC=gcc
LaTeX=latex
DVIPS=dvips
PS2EPS=./ps2eps
####################
# List LaTeX files #
####################
PiCTeX = points.tex \
inches.tex
##########################
# Rules and dependencies #
##########################
all: ruler
ruler: ruler.ps
$(PS2EPS) -f -l ruler.ps
ruler.ps: ruler.dvi
$(DVIPS) -Ppdf -t legal -o ruler.ps ruler.dvi
ruler.dvi: ruler.tex
$(LaTeX) ruler.tex
ruler.tex: points.tex inches.tex
points.tex: points.c
$(CC) -o points points.c
./points
inches.tex: inches.c
$(CC) -o inches inches.c
./inches
############
# Clean up #
############
clean:
rm -f inches.tex inches points.tex points ruler.dvi ruler.aux ruler.log ruler.ps
|