NROFF=nroff
TBL=tbl
EQN=eqn
+PIC=pic
+REFER=refer
MS=-ms
RESFILES= \
- toolkit.$(SUF) install.$(SUF) ack.$(SUF) v7bugs.$(SUF) \
+ toolkit.$(SUF) install.$(SUF) em.$(SUF) ack.$(SUF) v7bugs.$(SUF) \
peep.$(SUF) cg.$(SUF) ncg.$(SUF) regadd.$(SUF) LLgen.$(SUF) \
- basic.$(SUF) cref.$(SUF) pcref.$(SUF) val.$(SUF) \
- 6500.$(SUF) i80.$(SUF) z80.$(SUF) top.$(SUF)
+ basic.$(SUF) crefman.$(SUF) pcref.$(SUF) val.$(SUF) \
+ 6500.$(SUF) i80.$(SUF) z80.$(SUF) top.$(SUF) ego.$(SUF) \
+ m68020.$(SUF) occam.$(SUF)
-cref.$(SUF): cref.doc
- $(TBL) $? | $(NROFF) >$@
-v7bugs.$(SUF): v7bugs.doc
+.SUFFIXES: .doc .$(SUF)
+
+.doc.$(SUF):
+ $(NROFF) $(MS) $< > $@
+
+crefman.$(SUF): crefman.doc
+ $(EQN) $? | $(NROFF) $(MS) >$@
+v7bugs.$(SUF): v7bugs.doc
$(NROFF) $? >$@
-ack.$(SUF): ack.doc
- $(NROFF) $(MS) $? >$@
-cg.$(SUF): cg.doc
- $(NROFF) $(MS) $? >$@
-ncg.$(SUF): ncg.doc
- $(TBL) $? | $(NROFF) $(MS) >$@
-regadd.$(SUF): regadd.doc
- $(NROFF) $(MS) $? >$@
-install.$(SUF): install.doc
+install.$(SUF): install.doc
$(TBL) $? | $(NROFF) $(MS) >$@
-pcref.$(SUF): pcref.doc
+pcref.$(SUF): pcref.doc
$(NROFF) $? >$@
-basic.$(SUF): basic.doc
- $(NROFF) $(MS) $? >$@
-peep.$(SUF): peep.doc
- $(NROFF) $(MS) $? >$@
-val.$(SUF): val.doc
+val.$(SUF): val.doc
$(NROFF) $? >$@
-toolkit.$(SUF): toolkit.doc
- $(NROFF) $(MS) $? >$@
-LLgen.$(SUF): LLgen/Makefile LLgen/LLgen.doc LLgen/LLgen.refs
- cd LLgen; make "NROFF="$(NROFF) "MS="$(MS) "EQN="$(EQN) \
- "TBL="$(TBL) "SUF="$(SUF)
6500.$(SUF): 6500.doc
$(TBL) $? | $(NROFF) $(MS) >$@
-i80.$(SUF): i80.doc
- $(NROFF) $(MS) $? >$@
-z80.$(SUF): z80.doc
- $(NROFF) $(MS) $? >$@
-top.$(SUF): top/Makefile top/top.n top/refs.top
- cd top; make "NROFF="$(NROFF) "MS="$(MS) "EQN="$(EQN) \
- "TBL="$(TBL) "SUF="$(SUF)
+LLgen.doc: LLgen.X
+LLgen.X:
+ cd LLgen; make "EQN="$(EQN) "TBL="$(TBL) "REFER="$(REFER)
+top.doc: top.X
+top.X:
+ cd top; make "EQN="$(EQN) "TBL="$(TBL) "REFER="$(REFER)
+occam.doc: occam.X
+occam.X:
+ cd occam; make "PIC="$(PIC) "TBL="$(TBL) "EQN="$(EQN)
+ego.doc: ego.X
+ego.X:
+ cd ego; make "REFER="$(REFER)
+em.$(SUF): em.X
+em.X:
+ cd em; make "TBL="$(TBL) "NROFF="$(NROFF) "SUF="$(SUF)
install cmp:
tbl install.doc | nroff -Tlp $(MS) >install.pr
pr:
- @make "SUF="$(SUF) "NROFF="$(NROFF) \
+ @make "SUF="$(SUF) "NROFF="$(NROFF) "EQN="$(EQN) "TBL="$(TBL) \
+ "PIC="$(PIC) "MS="$(MS) \
$(RESFILES) >make.pr.out 2>&1
@$(PRINT) $(RESFILES)