Annotation of OpenXM_contrib/gnuplot/docs/makefile.ami, Revision 1.1
1.1 ! maekawa 1: #
! 2: # $Id: makefile.ami,v 1.2 1993/09/27 17:13:14 alex Exp $
! 3: #
! 4: # Makefile for GNUPLOT documentation (Aztec C v5.xx Version)
! 5: #
! 6: # Note that the top-level file for documentation is gnuplot.doc.
! 7: # See README.
! 8: #
! 9: # To print manual:
! 10: # make gnuplot.dvi (for latex)
! 11: # (print or view gnuplot.dvi)
! 12: # OR
! 13: # make gnuplot.nroff (for nroff)
! 14: # (print or view gnuplot.nroff)
! 15: # or
! 16: # make "TROFF=itroff" troff (for troff; use your troff for itroff here)
! 17: #
! 18: # $Id: makefile.ami,v 1.2 1993/09/27 17:13:14 alex Exp $
! 19:
! 20: # usually overridden by ../Makefile
! 21: HELPDEST = /usr/local/lib/
! 22:
! 23: # substitute your troff command (and any flags) for this one
! 24: TROFF=itroff
! 25:
! 26: # substitute cp if you do not have the install program
! 27: INSTALL=install
! 28:
! 29: # Compiler flags
! 30: # -DSYSV if att sys V
! 31: # -DMSDOS if MSDOS PS
! 32: # -traditional -g -O if gcc (set 'CC = gcc')
! 33: # no extra flags for BSD
! 34: CFLAGS =
! 35: CC = cc
! 36: LN =ln
! 37: LFLAGS = -lm -lc
! 38:
! 39: # default is what is needed for interactive gnuplot
! 40: default: gnuplot.hlp gnuplot.gih
! 41:
! 42: ### [tn]roff documentation
! 43: troff: gnuplot.ms titlepage.ms
! 44: tbl gnuplot.ms | eqn | $(TROFF) -ms
! 45:
! 46: # for screen viewing, or printers with backspace/overstrike, remove the -Tlpr
! 47: nroff gnuplot.nroff: gnuplot.ms titlepage.ms
! 48: tbl gnuplot.ms | neqn | nroff -ms -Tlpr > gnuplot.nroff
! 49:
! 50: ms gnuplot.ms: doc2ms gnuplot.doc
! 51: doc2ms < gnuplot.doc > gnuplot.ms
! 52:
! 53: doc2ms: doc2ms.c termdoc.c
! 54: $(CC) $(CFLAGS) -DALL_TERM_DOC -o doc2ms.o doc2ms.c termdoc.c
! 55: $(LN) -o doc2ms doc2ms.o termdoc.o $(LFLAGS)
! 56:
! 57: ### LaTeX documentation
! 58: tex gnuplot.tex: doc2tex gnuplot.doc
! 59: doc2tex < gnuplot.doc > gnuplot.tex
! 60:
! 61: dvi gnuplot.dvi: gnuplot.tex titlepage.tex
! 62: latex gnuplot.tex
! 63: latex gnuplot.tex
! 64:
! 65: doc2tex: doc2tex.c termdoc.c
! 66: $(CC) $(CFLAGS) -DALL_TERM_DOC -o doc2tex.o doc2tex.c termdoc.c
! 67: $(LN) -o doc2tex doc2tex.o termdoc.o $(LFLAGS)
! 68:
! 69: # this is how to make gnuplot.hlp
! 70: hlp gnuplot.hlp: doc2hlp gnuplot.doc
! 71: doc2hlp < gnuplot.doc > gnuplot.hlp
! 72:
! 73: doc2hlp: doc2hlp.c termdoc.c
! 74: $(CC) $(CFLAGS) -o doc2hlp.o doc2hlp.c termdoc.c
! 75: $(LN) -o doc2hlp doc2hlp.o termdoc.o $(LFLAGS)
! 76:
! 77: # this is how to make gnuplot.gih
! 78: gih gnuplot.gih: doc2gih gnuplot.doc
! 79: doc2gih < gnuplot.doc > gnuplot.gih
! 80:
! 81: doc2gih: doc2gih.c termdoc.c
! 82: $(CC) $(CFLAGS) -o doc2gih.o doc2gih.c termdoc.c
! 83: $(LN) -o doc2gih doc2gih.o termdoc.o $(LFLAGS)
! 84:
! 85: # this is how to check the gnuplot.doc file
! 86: check: checkdoc gnuplot.doc
! 87: checkdoc < gnuplot.doc
! 88:
! 89: checkdoc: checkdoc.c termdoc.c
! 90: $(CC) $(CFLAGS) -DALL_TERM_DOC -o checkdoc.o checkdoc.c termdoc.c
! 91: $(LN) -o checkdoc checkdoc.o termdoc.o $(LFLAGS)
! 92:
! 93: # For Unix and MSDOS only
! 94: install-unix: gnuplot.gih
! 95: $(INSTALL) gnuplot.gih $(HELPDEST)
! 96:
! 97: # for VMS only
! 98: install-vms: gnuplot.hlp
! 99: $(INSTALL) gnuplot.hlp $(HELPDEST)
! 100:
! 101: # remove all derived files
! 102: clean:
! 103: rm -f doc2ms gnuplot.nroff gnuplot.ms
! 104: rm -f doc2tex gnuplot.tex gnuplot.dvi gnuplot.aux gnuplot.log gnuplot.toc
! 105: rm -f doc2hlp gnuplot.hlp
! 106: rm -f doc2gih gnuplot.gih
! 107: rm -f checkdoc *~ *.o core a.out
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>