File: makefile

package info (click to toggle)
haskell98-tutorial 200006-2-3
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 972 kB
  • sloc: haskell: 2,125; makefile: 68; sh: 9
file content (30 lines) | stat: -rw-r--r-- 687 bytes parent folder | download | duplicates (6)
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
# Makefile for the Haskell tutorial
# For whatever reason you might have explicitly make verbatim first.

RM = rm -f
LATEX=latex
RUNHUGS=~/local/bin/runhugs98

.SUFFIXES:	.verb .tex .dvi .ps

.verb.tex:	verbatim
	expand < $< | ./verbatim >$@

.tex.dvi:
	$(LATEX) $<

.dvi.ps:
	dvips -o $*.ps $<

haskell-tutorial.ps: haskell-tutorial.dvi

haskell-tutorial.dvi: verbatim haskell-tutorial.tex intro.tex goodies.tex \
                        functions.tex \
			patterns.tex classes.tex moretypes.tex io.tex \
			stdclasses.tex monads.tex numbers.tex \
			modules.tex pitfalls.tex arrays.tex end.tex

verbatim:       verbatim.lex
	lex verbatim.lex
	cc lex.yy.c -lfl -o verbatim
	rm lex.yy.c