ack/doc/em/Makefile

37 lines
1,002 B
Makefile
Raw Normal View History

HOME=../..
1986-02-04 17:37:41 +00:00
TBL=tbl
NROFF=nroff
SUF=pr
head: ../em.$(SUF)
1986-02-04 17:37:41 +00:00
FILES = macr.nr title.nr intro.nr mem.nr ispace.nr dspace.nr mapping.nr \
types.nr descr.nr env.nr traps.nr mach.nr assem.nr \
app.int.nr app.codes.nr app.exam.nr cont.nr
IOP=$(HOME)/util/ass/ip_spec.t# # to construct itables from
1984-06-29 11:29:28 +00:00
../em.$(SUF): $(FILES) itables dispatdummy em.i Makefile
$(TBL) $(FILES) | $(NROFF) > ../em.$(SUF)
app.codes.pr: app.codes.nr itables dispatdummy
1986-02-04 17:37:41 +00:00
itables: $(IOP) ip.awk
1986-02-27 14:57:35 +00:00
awk -f ip.awk $(IOP) | sed 's/-/\\-/g' | $(TBL) >itables
1984-06-29 11:29:28 +00:00
dispatdummy: $(IOP) mkdispatch
mkdispatch < $(IOP) > dispatdummy
sed -f dispat1.sed < dispatdummy | $(TBL) > dispat1
sed -f dispat2.sed < dispatdummy | $(TBL) > dispat2
sed -f dispat3.sed < dispatdummy | $(TBL) > dispat3
mkdispatch: mkdispatch.c
cc -I$(HOME)/util/ass -I$(HOME)/h -o mkdispatch mkdispatch.c $(HOME)/lib/em_data.a
1984-06-29 11:29:28 +00:00
.SUFFIXES : .pr .nr
1986-02-04 17:37:41 +00:00
.nr.pr: ; $(TBL) macr.nr $*.nr | $(NROFF) >$@
1984-06-29 11:29:28 +00:00
1986-02-27 14:57:35 +00:00
clean:
rm -f *.pr itables *.out dispatdummy dispat? *.o mkdispatch