Commit f0217cbf authored by dnt's avatar dnt

[project @ 1996-11-26 14:43:01 by dnt]

Removed redundant Makefiles
parent 52997eb9
# $Log: Makefile.original,v $
# Revision 1.1 1996/01/08 20:05:20 partain
# Initial revision
#
.SUFFIXES: .lhs .tex .dvi .ps .hi
SHELL = /bin/sh
MAILDEST = dlester@cs.man.ac.uk, augustss@animal.cs.chalmers.se, \
simonpj@dcs.glasgow.ac.uk
OBJS = QRationals.o ContinuedFractions.o Transcendentals.o RealReals.o Main.o
SRCS = makefile Doc.lhs $(OBJS:.o=.lhs)
HFLAGS = #-pg
HBC = hbc $(HFLAGS)
# Haskell stuff
Main: $(OBJS)
$(HBC) -o Main $(OBJS)
QRationals.o + QRationals.hi: QRationals.lhs
$(HBC) -c QRationals.lhs
ContinuedFractions.o + ContinuedFractions.hi: ContinuedFractions.lhs \
QRationals.hi
$(HBC) -c ContinuedFractions.lhs
Transcendentals.o + Transcendentals.hi: Transcendentals.lhs \
ContinuedFractions.hi
$(HBC) -c Transcendentals.lhs
RealReals.o + RealReals.hi: RealReals.lhs \
Transcendentals.hi
$(HBC) -c RealReals.lhs
Main.o + Main.hi: Main.lhs RealReals.hi
$(HBC) -c Main.lhs
# RCS stuff
%.lhs: RCS/%.lhs,v
co -u $@
# Latex stuff
Doc.ps: $(SRCS:.lhs=.tex)
latex Doc.tex
dvips -o $@ Doc.dvi
%.tex: %.lhs
@echo "Making $@ from $<"
@expand < $< | verbatim > $@
# mail stuff
shar: $(SRCS)
makeshar $(SRCS) > shar
mail: shar
mail -s "Haskell B Computable Real Numbers" $(MAILDEST) < shar
rm shar
# Two ways to compile the expert system, one with gofer and one with hbc:
expert: Result.hs Table.hs Knowledge.hs Match.hs Search.hs Main.hs
goferc + expert.prj
expert2: Result.o Table.o Knowledge.o Match.o Search.o Main.o
hbc -o expert2 *.o
Result.o: Result.hs
hbc -c Result.hs
Table.o: Table.hs Result.o
hbc -c Table.hs
Knowledge.o: Knowledge.hs Table.o Result.o
hbc -c Knowledge.hs
Match.o: Match.hs Knowledge.o Table.o Result.o
hbc -c Match.hs
Search.o: Search.hs Match.o Knowledge.o Table.o Result.o
hbc -c Search.hs
Main.o: Main.hs Search.o Match.o Knowledge.o Table.o Result.o
hbc -c Main.hs
# Makefile to process LaTeX/Haskell files
#
# The source files have suffix .lhs
#
# To get a latex file (.tex), we expand out tabs,
# and run through add-index-entries and verbatim
#
#$Log: Makefile.original,v $
#Revision 1.2 1996/11/26 14:41:12 dnt
#Merged in changes from new-build-system branch
#
#Revision 1.1.4.1 1996/10/03 18:19:27 dnt
#Converted to new build system
#Generally tidied up a bit (removed original makefiles and the like)
#Make a few tiny changes to avoid warnings/errors compiling under 1.3
#
#Revision 1.1 1996/01/08 20:04:22 partain
#Initial revision
#
#Revision 1.2 92/06/30 15:56:53 dlester
#Trivial bits and pieces.
#
#Revision 1.1 92/06/30 13:57:54 dlester
#Initial
#
.SUFFIXES: .fig .lhs .tex .dvi .ind .idx
HC = hbc
LATEX = latex
SRCS = Main.lhs IntLib.lhs Random.lhs Prime.lhs
DIST = $(SRCS) Makefile mersenne607 Readme
MAIL = dlester@cs.man.ac.uk
prime: $(SRCS:.lhs=.o)
$(HC) -o prime $(SRCS:.lhs=.o)
Main.dvi: $(SRCS:.lhs=.tex)
$(LATEX) Main.tex
Main.o: IntLib.o Prime.o
Prime.o: IntLib.o Random.o
%.o: %.lhs
$(HC) -c $<
%.tex: %.lhs
@echo "Making $@ from $<"
@expand < $< | add-index-entries | verbatim > $@
%.tex: %.fig
fig2dev -L latex $< $@
%.ps: %.fig
fig2dev -L ps $< $@
%.dvi: %.tex
$(LATEX) $<
%.ind: %.idx
sort $< | subsume-index-entries | makeindex -i -t $*.ilg > $*.nid
cmp -s $*.nid $@ || mv $*.nid $@
rm -f $*.nid
mail:
makeshar $(DIST) | mail -s "Primality Test" $(MAIL)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment