Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # $Header$
  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) pcref.$(SUF) val.$(SUF) ansi_C.$(SUF) \
  13. 6500.$(SUF) i80.$(SUF) z80.$(SUF) top.$(SUF) ego.$(SUF) \
  14. m68020.$(SUF) occam.$(SUF) m2ref.$(SUF) ceg.$(SUF) nopt.$(SUF) \
  15. sparc.$(SUF) int.$(SUF) lint.$(SUF)
  16. .SUFFIXES: .doc .$(SUF) .lpr
  17. .doc.$(SUF):
  18. $(NROFF) $(MS) $< > $@
  19. # directly to the printer:
  20. .doc.lpr:
  21. $(NROFF) $(MS) $< | $(OPR)
  22. # Exceptions, to be run without -ms
  23. v7bugs.$(SUF): v7bugs.doc
  24. $(NROFF) v7bugs.doc >$@
  25. v7bugs.lpr: v7bugs.doc
  26. $(NROFF) v7bugs.doc | $(OPR)
  27. pcref.$(SUF): pcref.doc
  28. $(NROFF) pcref.doc >$@
  29. pcref.lpr: pcref.doc
  30. $(NROFF) pcref.doc | $(OPR)
  31. val.$(SUF): val.doc
  32. $(NROFF) val.doc >$@
  33. val.lpr: val.doc
  34. $(NROFF) val.doc | $(OPR)
  35. pr:
  36. @make "SUF="$(SUF) "NROFF="$(NROFF) "MS="$(MS) \
  37. $(RESFILES) >make.pr.out 2>&1
  38. @$(PRINT) $(RESFILES)
  39. # The 'opr' entry creates a lot of paper ... but the user must be able
  40. # to write the doc directory. I hope that this limits the users of
  41. # this entry to persons that know what they are doing.
  42. opr:
  43. @make "SUF="$(SUF) "NROFF="$(NROFF) "MS="$(MS) $(RESFILES)
  44. $(OPR) $(RESFILES)
  45. clean:
  46. -rm -f $(RESFILES)
  47. # The distr entry is only used when making a distribution tree.
  48. # It makes a version of the installation manual, suitable for a simple
  49. # line printer.
  50. distr: install.doc
  51. tbl install.doc | nroff -Tlpr $(MS) >install.pr