# Makefile for GNUPLOT documentation## Note that the top-level file for documentation is gnuplot.doc.# See README.## To print manual:# make gnuplot.dvi (for latex)# (print or view gnuplot.dvi)# OR# make gnuplot.nroff (for nroff)# (print or view gnuplot.nroff)# or# make "TROFF=itroff" troff (for troff; use your troff here)#.NOEXPORT:SHELL = /bin/shsrcdir = @srcdir@VPATH = @srcdir@prefix = /usr/localexec_prefix = $(prefix)bindir = $(exec_prefix)/bindatadir = $(prefix)/libmandir = $(prefix)/manINSTALL = @INSTALL@INSTALL_PROGRAM = @INSTALL_PROGRAM@INSTALL_DATA = @INSTALL_DATA@CC = @CC@DEFS = @DEFS@CFLAGS = -O2LDFLAGS = -sLIBS = MAKEINFO = makeinfo# substitute your troff command (and any flags) for this oneTROFF=troff# substitute your DVI to PostScript conversion program hereDVIPS=dvips# default is what is needed for interactive gnuplotdefault: gnuplot.hlp gnuplot.gih### [tn]roff documentationtroff: gnuplot.ms titlepag.ms tbl $(srcdir)/gnuplot.ms | eqn | $(TROFF) -msnroff: gnuplot.nroffgnuplot.nroff: gnuplot.ms titlepag.ms tbl $(srcdir)/gnuplot.ms | neqn | nroff -ms | col > gnuplot.nroffms: gnuplot.msgnuplot.ms: doc2ms gnuplot.doc ./doc2ms $(srcdir)/gnuplot.doc gnuplot.msdoc2ms: doc2ms.o $(CC) -o $@ doc2ms.o $(LDFLAGS) $(LIBS)### LaTeX documentationtex: gnuplot.texgnuplot.tex: doc2tex gnuplot.doc ./doc2tex $(srcdir)/gnuplot.doc gnuplot.tex# this is how to make DVI filesdvi: gnuplot.dvi gpcard.dvignuplot.dvi: gnuplot.tex titlepag.tex toc_entr.sty latex gnuplot latex gnuplotgpcard.dvi: gpcard.tex tex gpcard# this is how to make PostScript files# if pslatex has been installed, add "times" to titlepage.texps: gnuplot.ps gpcard.psgnuplot.ps: gnuplot.dvi $(DVIPS) gnuplotgpcard.ps: gpcard.dvi $(DVIPS) gpcarddoc2tex: doc2tex.o $(CC) -o $@ doc2tex.o $(LDFLAGS) $(LIBS)# this is how to make gnuplot.hlphlp: gnuplot.hlpgnuplot.hlp: doc2hlp gnuplot.doc ./doc2hlp $(srcdir)/gnuplot.doc gnuplot.hlp# this is how to make gnuplot.gihgih: gnuplot.gihgnuplot.gih: doc2gih gnuplot.doc ./doc2gih $(srcdir)/gnuplot.doc gnuplot.gihdoc2gih: doc2gih.o $(CC) -o $@ doc2gih.o $(LDFLAGS) $(LIBS)# this is how to make Info documentationinfo: gnuplot.infognuplot.info: gnuplot.doc perl $(srcdir)/doc2info.pl $(srcdir)/gnuplot.doc > gpltinfo.tex $(MAKEINFO) --fill-column=80 gpltinfo.tex rm -f gpltinfo.textutorial: latextut/tutorial.tex ( cd latextut; $(MAKE) )# this is how to check the gnuplot.doc filecheck: checkdoc gnuplot.doc ./checkdoc < $(srcdir)/gnuplot.doccheckdoc: checkdoc.o $(CC) -o $@ checkdoc.o $(LDFLAGS) $(LIBS)# For Unix and MSDOS onlyinstall: gnuplot.gih $(INSTALL_DATA) gnuplot.gih $(datadir)/gnuplot.gihuninstall: rm -f $(datadir)/gnuplot.gih# for VMS onlyinstall-vms: gnuplot.hlp $(INSTALL_DATA) gnuplot.hlp $(datadir)/gnuplot.hlp# remove all derived filesclean: rm -f doc2ms gnuplot.nroff gnuplot.ms \ doc2tex gnuplot.tex gnuplot.dvi \ gnuplot.aux gnuplot.log gnuplot.toc \ gnuplot.ps gpcard.dvi gpcard.log gpcard.ps \ doc2hlp gnuplot.hlp \ doc2gih gnuplot.gih \ checkdoc *.o core a.out \ gnuplot.info* gpltinfo.tex ( cd latextut; $(MAKE) clean )mostlyclean: cleandistclean: clean rm -f Makefilerealclean: distclean rm -f TAGS