[9] | 1 | # This is the Makefile for Elvis' "doc" directory. It makes use of a
|
---|
| 2 | # troff-like formatter called mroff. Since you probably don't have mroff,
|
---|
| 3 | # you'll need to edit this Makefile before you can fully use it. It can
|
---|
| 4 | # also use nroff, though, so you should be able to get something out of it.
|
---|
| 5 | #
|
---|
| 6 | # make Use nroff to create an ASCII version of the manual.
|
---|
| 7 | # make foo.doc Use nroff to create an ASCII version of foo.man or foo.ms
|
---|
| 8 | # make manual Use MROFF to print a typeset manual on a laser printer
|
---|
| 9 | # make foo.1200 Use MROFF to print a typeset version of foo.man or foo.ms
|
---|
| 10 | # make foo.100 Use MROFF to print a draft-quality version of foo.man or foo.ms
|
---|
| 11 | # make foo.more Use MROFF to preview foo.man or foo.more on your terminal
|
---|
| 12 | #
|
---|
| 13 |
|
---|
| 14 | ###############################################################################
|
---|
| 15 | # Definitions...
|
---|
| 16 |
|
---|
| 17 | MAN= ctags.man elvis.man elvprsv.man elvrec.man fmt.man ref.man
|
---|
| 18 | MS= title.ms index.ms intro.ms visual.ms ex.ms regexp.ms options.ms\
|
---|
| 19 | cutbufs.ms differ.ms internal.ms cflags.ms termcap.ms environ.ms\
|
---|
| 20 | versions.ms question.ms
|
---|
| 21 | ASC= title.doc index.doc intro.doc visual.doc ex.doc regexp.doc options.doc\
|
---|
| 22 | cutbufs.doc differ.doc internal.doc cflags.doc termcap.doc environ.doc\
|
---|
| 23 | versions.doc question.doc\
|
---|
| 24 | ctags.doc elvis.doc elvprsv.doc elvrec.doc fmt.doc ref.doc
|
---|
| 25 | MANUAL= title.1200 index.1200 intro.1200 visual.1200 ex.1200 regexp.1200 options.1200\
|
---|
| 26 | cutbufs.1200 differ.1200 internal.1200 cflags.1200 termcap.1200 environ.1200\
|
---|
| 27 | versions.1200\
|
---|
| 28 | ctags.1200 elvis.1200 elvprsv.1200 elvrec.1200 fmt.1200 ref.1200
|
---|
| 29 | VER= ver.ms
|
---|
| 30 | TROFF= mroff
|
---|
| 31 | NROFF= nroff
|
---|
| 32 |
|
---|
| 33 | ###############################################################################
|
---|
| 34 | # Rules...
|
---|
| 35 |
|
---|
| 36 | .SUFFIXES: .tmp .100 .1200 .more .doc .man .ms .vga .vgas
|
---|
| 37 |
|
---|
| 38 | .ms.tmp:
|
---|
| 39 | $(TROFF) -ms $(VER) $< >tmp
|
---|
| 40 |
|
---|
| 41 | .man.tmp:
|
---|
| 42 | $(TROFF) -man $< >tmp
|
---|
| 43 |
|
---|
| 44 | .ms.more:
|
---|
| 45 | $(TROFF) -ms $(VER) $< | draft | more
|
---|
| 46 |
|
---|
| 47 | .man.more:
|
---|
| 48 | $(TROFF) -man $< | draft | more
|
---|
| 49 |
|
---|
| 50 | .ms.1200:
|
---|
| 51 | $(TROFF) -ms $(VER) $< | hp2 1200 | lp -og $(PRINTER)
|
---|
| 52 |
|
---|
| 53 | .man.1200:
|
---|
| 54 | $(TROFF) -man $< | hp2 1200 | lp -og $(PRINTER)
|
---|
| 55 |
|
---|
| 56 | .ms.100:
|
---|
| 57 | $(TROFF) -ms $(VER) $< | hp2 100 | lp -og $(PRINTER)
|
---|
| 58 |
|
---|
| 59 | .man.100:
|
---|
| 60 | $(TROFF) -man $< | hp2 100 | lp -og $(PRINTER)
|
---|
| 61 |
|
---|
| 62 | .ms.doc:
|
---|
| 63 | $(NROFF) -ms $(VER) $< >$@
|
---|
| 64 |
|
---|
| 65 | .man.doc:
|
---|
| 66 | $(NROFF) -man $< >$@
|
---|
| 67 |
|
---|
| 68 | .ms.vga:
|
---|
| 69 | $(TROFF) -ms $(VER) $< >/tmp/foo
|
---|
| 70 | -vga /tmp/foo
|
---|
| 71 | rm /tmp/foo
|
---|
| 72 |
|
---|
| 73 | .ms.vgas:
|
---|
| 74 | $(TROFF) -ms $(VER) $< >/tmp/foo
|
---|
| 75 | -vgas /tmp/foo
|
---|
| 76 | rm /tmp/foo
|
---|
| 77 |
|
---|
| 78 | #############################################################################
|
---|
| 79 | # Targets...
|
---|
| 80 |
|
---|
| 81 | asc: $(ASC)
|
---|
| 82 | cat $(ASC) >asc
|
---|
| 83 |
|
---|
| 84 | manual: $(MANUAL)
|
---|
| 85 |
|
---|
| 86 | clean:
|
---|
| 87 | rm -f *.doc *.sh
|
---|