Makefile 750 B

123456789101112131415161718192021222324252627282930313233343536
  1. HOME=../..
  2. head: doc.pr
  3. NROFF=nroff
  4. TBL=tbl
  5. FILES = macr.nr title.nr intro.nr mem.nr ispace.nr dspace.nr mapping.nr \
  6. types.nr descr.nr env.nr traps.nr mach.nr assem.nr \
  7. app.int.nr app.codes.nr app.exam.nr cont.nr
  8. IOP=$(HOME)/util/ass/ip_spec.t# # to construct itables from
  9. doc.pr: $(FILES) itables em.i Makefile
  10. $(TBL) $(FILES) | $(NROFF) >doc.pr
  11. distr: $(FILES) itables em.i
  12. tbl $(FILES) | nroff -Tlp >doc.pr
  13. opr: doc.pr
  14. make pr | opr
  15. pr:
  16. @make "NROFF="$(NROFF) TBL=$(TBL) doc.pr >makepr.out 2>&1
  17. @cat doc.pr
  18. app.codes.pr: app.codes.nr itables
  19. itables: $(IOP) ip.awk
  20. awk -f ip.awk $(IOP) | sed 's/-/\\-/g' | $(TBL) >itables
  21. .SUFFIXES : .pr .nr
  22. .nr.pr: ; $(TBL) macr.nr $*.nr | $(NROFF) >$@
  23. clean:
  24. rm -f *.pr itables *.out