ack/doc/Makefile

83 lines
1.8 KiB
Makefile
Raw Permalink Normal View History

1994-06-24 11:31:16 +00:00
# $Id$
1984-07-27 10:28:48 +00:00
1993-03-31 13:22:17 +00:00
# This Makefile is not supposed to be used in the doc source directory.
# Instead, it is supposed to be copied to the target doc directory.
SUF=dit
PRINT=dis
NROFF=troff
MS=-ms
1993-03-31 13:22:17 +00:00
OPR=dip
1984-06-29 11:21:50 +00:00
1986-02-28 18:02:00 +00:00
RESFILES= \
1987-03-12 23:46:19 +00:00
toolkit.$(SUF) install.$(SUF) em.$(SUF) ack.$(SUF) v7bugs.$(SUF) \
1986-02-28 18:02:00 +00:00
peep.$(SUF) cg.$(SUF) ncg.$(SUF) regadd.$(SUF) LLgen.$(SUF) \
1995-12-06 13:17:50 +00:00
basic.$(SUF) crefman.$(SUF) pascal.$(SUF) pcref.$(SUF) val.$(SUF) \
ansi_C.$(SUF) \
1987-03-12 23:46:19 +00:00
6500.$(SUF) i80.$(SUF) z80.$(SUF) top.$(SUF) ego.$(SUF) \
1991-10-01 16:57:53 +00:00
m68020.$(SUF) occam.$(SUF) m2ref.$(SUF) ceg.$(SUF) nopt.$(SUF) \
sparc.$(SUF) int.$(SUF) lint.$(SUF)
1986-02-28 18:02:00 +00:00
.SUFFIXES: .doc .$(SUF) .lpr .out
1987-03-12 23:46:19 +00:00
.doc.$(SUF):
1993-03-31 13:22:17 +00:00
$(NROFF) $(MS) $< > $@
# directly to the printer:
.doc.lpr:
$(NROFF) $(MS) $< | $(OPR)
# to standard output
.doc.out:
@$(NROFF) $(MS) $<
1993-03-31 13:22:17 +00:00
# Exceptions, to be run without -ms
1987-03-12 23:46:19 +00:00
v7bugs.$(SUF): v7bugs.doc
1993-03-31 13:22:17 +00:00
$(NROFF) v7bugs.doc >$@
v7bugs.lpr: v7bugs.doc
$(NROFF) v7bugs.doc | $(OPR)
v7bugs.out: v7bugs.doc
@$(NROFF) v7bugs.doc
1987-03-12 23:46:19 +00:00
pcref.$(SUF): pcref.doc
1993-03-31 13:22:17 +00:00
$(NROFF) pcref.doc >$@
pcref.lpr: pcref.doc
$(NROFF) pcref.doc | $(OPR)
pcref.out: pcref.doc
@$(NROFF) pcref.doc
1987-03-12 23:46:19 +00:00
val.$(SUF): val.doc
1993-03-31 13:22:17 +00:00
$(NROFF) val.doc >$@
1984-06-29 11:21:50 +00:00
1993-03-31 13:22:17 +00:00
val.lpr: val.doc
$(NROFF) val.doc | $(OPR)
1986-02-28 18:02:00 +00:00
val.out: val.doc
@$(NROFF) val.doc
1984-06-29 11:21:50 +00:00
pr:
1993-03-31 13:22:17 +00:00
@make "SUF="$(SUF) "NROFF="$(NROFF) "MS="$(MS) \
1986-02-28 18:02:00 +00:00
$(RESFILES) >make.pr.out 2>&1
1984-06-29 11:21:50 +00:00
@$(PRINT) $(RESFILES)
1993-03-31 13:22:17 +00:00
# The 'opr' entry creates a lot of paper ... but the user must be able
# to write the doc directory. I hope that this limits the users of
# this entry to persons that know what they are doing.
1984-06-29 11:21:50 +00:00
opr:
1993-03-31 13:22:17 +00:00
@make "SUF="$(SUF) "NROFF="$(NROFF) "MS="$(MS) $(RESFILES)
$(OPR) $(RESFILES)
1984-06-29 11:21:50 +00:00
clean:
1993-03-31 13:22:17 +00:00
-rm -f $(RESFILES)
# The distr entry is only used when making a distribution tree.
# It makes a version of the installation manual, suitable for a simple
# line printer.
distr: install.doc
tbl install.doc | nroff -Tlp $(MS) >install.pr