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
|
# Tools for building the Haskell Report
# tex.hs -- Program to generate html from verb / hs
# index.hs -- Program to hyperlink prelude index
# splitAndIndexPgm -- perl script to convert .hs to .verb
# What is GHC?
GHC = ghc
# What is Lex?
LEX = flex
LEX_OPTS = -t -8
all : verbatim run_tex run_index
clean:
rm -f *.hi *.o verbatim verbatim.c run_tex run_index
verbatim: verbatim.lex
$(LEX) $(LEX_OPTS) verbatim.lex > verbatim.c || ( rm -f verbatim.c && exit 1 )
$(CC) -c verbatim.c -o verbatim.o
$(CC) -o verbatim verbatim.o
run_tex: tex.hs
$(GHC) -o run_tex tex.hs -fglasgow-exts -H20m
run_index: index.hs
$(GHC) -o run_index index.hs -fglasgow-exts -H20m
|