Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # $Id$
  2. # This Makefile is not supposed to be used in the doc source directory.
  3. # Instead, it is supposed to be copied to the target doc directory.
  4. SUF=dit
  5. PRINT=dis
  6. NROFF=troff
  7. MS=-ms
  8. OPR=dip
  9. RESFILES= \
  10. toolkit.$(SUF) install.$(SUF) em.$(SUF) ack.$(SUF) v7bugs.$(SUF) \
  11. peep.$(SUF) cg.$(SUF) ncg.$(SUF) regadd.$(SUF) LLgen.$(SUF) \
  12. basic.$(SUF) crefman.$(SUF) pascal.$(SUF) pcref.$(SUF) val.$(SUF) \
  13. ansi_C.$(SUF) \
  14. 6500.$(SUF) i80.$(SUF) z80.$(SUF) top.$(SUF) ego.$(SUF) \
  15. m68020.$(SUF) occam.$(SUF) m2ref.$(SUF) ceg.$(SUF) nopt.$(SUF) \
  16. sparc.$(SUF) int.$(SUF) lint.$(SUF)
  17. .SUFFIXES: .doc .$(SUF) .lpr .out
  18. .doc.$(SUF):
  19. $(NROFF) $(MS) $< > $@
  20. # directly to the printer:
  21. .doc.lpr:
  22. $(NROFF) $(MS) $< | $(OPR)
  23. # to standard output
  24. .doc.out:
  25. @$(NROFF) $(MS) $<
  26. # Exceptions, to be run without -ms
  27. v7bugs.$(SUF): v7bugs.doc
  28. $(NROFF) v7bugs.doc >$@
  29. v7bugs.lpr: v7bugs.doc
  30. $(NROFF) v7bugs.doc | $(OPR)
  31. v7bugs.out: v7bugs.doc
  32. @$(NROFF) v7bugs.doc
  33. pcref.$(SUF): pcref.doc
  34. $(NROFF) pcref.doc >$@
  35. pcref.lpr: pcref.doc
  36. $(NROFF) pcref.doc | $(OPR)
  37. pcref.out: pcref.doc
  38. @$(NROFF) pcref.doc
  39. val.$(SUF): val.doc
  40. $(NROFF) val.doc >$@
  41. val.lpr: val.doc
  42. $(NROFF) val.doc | $(OPR)
  43. val.out: val.doc
  44. @$(NROFF) val.doc
  45. pr:
  46. @make "SUF="$(SUF) "NROFF="$(NROFF) "MS="$(MS) \
  47. $(RESFILES) >make.pr.out 2>&1
  48. @$(PRINT) $(RESFILES)
  49. # The 'opr' entry creates a lot of paper ... but the user must be able
  50. # to write the doc directory. I hope that this limits the users of
  51. # this entry to persons that know what they are doing.
  52. opr:
  53. @make "SUF="$(SUF) "NROFF="$(NROFF) "MS="$(MS) $(RESFILES)
  54. $(OPR) $(RESFILES)
  55. clean:
  56. -rm -f $(RESFILES)
  57. # The distr entry is only used when making a distribution tree.
  58. # It makes a version of the installation manual, suitable for a simple
  59. # line printer.
  60. distr: install.doc
  61. tbl install.doc | nroff -Tlp $(MS) >install.pr