ack/doc/em/Makefile

38 lines
1,019 B
Makefile
Raw Normal View History

HOME=../..
1986-02-04 17:37:41 +00:00
TBL=tbl
NROFF=nroff
SUF=pr
1988-05-04 10:14:48 +00:00
TARGET=-Tlp
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
1988-03-15 11:37:00 +00:00
IOP=$(HOME)/etc/ip_spec.t# # to construct itables from
1984-06-29 11:29:28 +00:00
../em.$(SUF): $(FILES) itables dispatdummy em.i Makefile
1988-11-11 12:53:40 +00:00
$(TBL) $(FILES) | $(NROFF) -mkun $(TARGET) > ../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
1991-10-01 16:44:14 +00:00
$(CC) -I$(HOME)/h -o mkdispatch mkdispatch.c $(HOME)/lib.bin/em_data.a
1984-06-29 11:29:28 +00:00
.SUFFIXES : .pr .nr
1988-11-11 12:53:40 +00:00
.nr.pr: ; $(TBL) macr.nr $*.nr | $(NROFF) -mkun >$@
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