|
|
@ -84,9 +84,10 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
TOPFILE = userguide.tex
|
|
|
|
TOPFILE = userguide.tex
|
|
|
|
|
|
|
|
HTMLFILE = userhtml.tex
|
|
|
|
SECFILE = title.tex abstract.tex overview.tex distribution.tex \
|
|
|
|
SECFILE = title.tex abstract.tex overview.tex distribution.tex \
|
|
|
|
building.tex background.tex gettingstarted.tex userinterface.tex \
|
|
|
|
building.tex background.tex gettingstarted.tex userinterface.tex \
|
|
|
|
errors.tex bibliography.tex license.tex userhtml.tex
|
|
|
|
errors.tex bibliography.tex license.tex
|
|
|
|
FIGDIR = figures
|
|
|
|
FIGDIR = figures
|
|
|
|
|
|
|
|
|
|
|
|
XPDFFLAGS =
|
|
|
|
XPDFFLAGS =
|
|
|
@ -111,6 +112,8 @@ DATE = $(shell date +%Y-%m-%d)
|
|
|
|
##
|
|
|
|
##
|
|
|
|
## Programs
|
|
|
|
## Programs
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
LATEX = latex
|
|
|
|
|
|
|
|
LTX2HTML = latex2html
|
|
|
|
PDFLATEX = pdflatex
|
|
|
|
PDFLATEX = pdflatex
|
|
|
|
ACRO = evince
|
|
|
|
ACRO = evince
|
|
|
|
XPDF = xpdf
|
|
|
|
XPDF = xpdf
|
|
|
@ -127,7 +130,7 @@ CLEANIDX = ../bin/cleanidx
|
|
|
|
##
|
|
|
|
##
|
|
|
|
## Files
|
|
|
|
## Files
|
|
|
|
#
|
|
|
|
#
|
|
|
|
TEXFILES = $(TOPFILE) $(SECFILE)
|
|
|
|
TEXFILES = $(TOPFILE) $(SECFILE) $(HTMLFILE)
|
|
|
|
RCSFILES = $(TEXFILES) Makefile
|
|
|
|
RCSFILES = $(TEXFILES) Makefile
|
|
|
|
|
|
|
|
|
|
|
|
BASEFILE = $(patsubst %.tex,%,$(TOPFILE))
|
|
|
|
BASEFILE = $(patsubst %.tex,%,$(TOPFILE))
|
|
|
@ -136,6 +139,10 @@ PDF = $(join $(BASEFILE),.pdf)
|
|
|
|
PS = $(join $(BASEFILE),.ps)
|
|
|
|
PS = $(join $(BASEFILE),.ps)
|
|
|
|
GXS = $(join $(BASEFILE),.gxs)
|
|
|
|
GXS = $(join $(BASEFILE),.gxs)
|
|
|
|
GLX = $(join $(BASEFILE),.glx)
|
|
|
|
GLX = $(join $(BASEFILE),.glx)
|
|
|
|
|
|
|
|
BASEHTML = $(patsubst %.tex,%,$(HTMLFILE))
|
|
|
|
|
|
|
|
HTML = $(join $(BASEFILE),.html)
|
|
|
|
|
|
|
|
HTMLDIR = ../html
|
|
|
|
|
|
|
|
HTMLFLAGS = -noaddress
|
|
|
|
|
|
|
|
|
|
|
|
FIGURES = $(sort $(wildcard $(FIGDIR)/*))
|
|
|
|
FIGURES = $(sort $(wildcard $(FIGDIR)/*))
|
|
|
|
GLOFILES:= $(sort $(wildcard lib/*.gdf))
|
|
|
|
GLOFILES:= $(sort $(wildcard lib/*.gdf))
|
|
|
@ -151,8 +158,10 @@ TEXLNFIL = $(addprefix $(PWD)/,$(TEXFILES))
|
|
|
|
|
|
|
|
|
|
|
|
#============================================================================
|
|
|
|
#============================================================================
|
|
|
|
|
|
|
|
|
|
|
|
all: $(PDF)
|
|
|
|
all: pdf html
|
|
|
|
@echo $(PDF)
|
|
|
|
|
|
|
|
|
|
|
|
pdf: $(PDF)
|
|
|
|
|
|
|
|
html: $(HTML)
|
|
|
|
|
|
|
|
|
|
|
|
$(PDF): $(TEXFILES) $(LIBFILES) $(FIGURES) Makefile
|
|
|
|
$(PDF): $(TEXFILES) $(LIBFILES) $(FIGURES) Makefile
|
|
|
|
$(header)
|
|
|
|
$(header)
|
|
|
@ -170,6 +179,22 @@ $(PDF): $(TEXFILES) $(LIBFILES) $(FIGURES) Makefile
|
|
|
|
$(pdflatex-filter)
|
|
|
|
$(pdflatex-filter)
|
|
|
|
$(finish)
|
|
|
|
$(finish)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(HTML): $(TEXFILES) $(LIBFILES) $(FIGURES) Makefile
|
|
|
|
|
|
|
|
$(header)
|
|
|
|
|
|
|
|
$(initialize)
|
|
|
|
|
|
|
|
$(latex-filter)
|
|
|
|
|
|
|
|
ifneq ($(BIBFILES),)
|
|
|
|
|
|
|
|
$(bibtex)
|
|
|
|
|
|
|
|
$(latex-filter)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(GLOFILES),)
|
|
|
|
|
|
|
|
$(glosstex)
|
|
|
|
|
|
|
|
$(latex-filter)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
# $(makeindex)
|
|
|
|
|
|
|
|
$(latex-filter)
|
|
|
|
|
|
|
|
$(ltx2html-filter)
|
|
|
|
|
|
|
|
|
|
|
|
$(PS): $(PDF)
|
|
|
|
$(PS): $(PDF)
|
|
|
|
$(PDF2PS) $< $(PS)
|
|
|
|
$(PDF2PS) $< $(PS)
|
|
|
|
|
|
|
|
|
|
|
@ -270,14 +295,30 @@ define pdflatex
|
|
|
|
cd tmp; $(PDFLATEX) $(TOPFILE)
|
|
|
|
cd tmp; $(PDFLATEX) $(TOPFILE)
|
|
|
|
endef
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define latex
|
|
|
|
|
|
|
|
@echo
|
|
|
|
|
|
|
|
@echo "----- latex -------------------------------------------------------"
|
|
|
|
|
|
|
|
@echo -n "Starting: "; date
|
|
|
|
|
|
|
|
@echo
|
|
|
|
|
|
|
|
cd tmp; $(LATEX) $(HTMLFILE)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
define pdflatex-filter
|
|
|
|
define latex-filter
|
|
|
|
@echo
|
|
|
|
@echo
|
|
|
|
@echo "----- pdflatex -------------------------------------------------------"
|
|
|
|
@echo "----- latex -------------------------------------------------------"
|
|
|
|
|
|
|
|
@echo -n "Starting: "; date
|
|
|
|
|
|
|
|
@echo
|
|
|
|
|
|
|
|
cd tmp; ($(LATEX) $(HTMLFILE) 2>&1) | $(FILTER)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define ltx2html-filter
|
|
|
|
|
|
|
|
@echo
|
|
|
|
|
|
|
|
@echo "----- latex -------------------------------------------------------"
|
|
|
|
@echo -n "Starting: "; date
|
|
|
|
@echo -n "Starting: "; date
|
|
|
|
@echo
|
|
|
|
@echo
|
|
|
|
cd tmp; ($(PDFLATEX) $(TOPFILE) 2>&1) | $(FILTER)
|
|
|
|
cd tmp; ($(LTX2HTML) $(HTMLFLAGS) -dir ../$(HTMLDIR) $(HTMLFILE) 2>&1) | $(FILTER)
|
|
|
|
endef
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
@ -324,4 +365,14 @@ define finish
|
|
|
|
@echo -n "Target: "
|
|
|
|
@echo -n "Target: "
|
|
|
|
endef
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define ltx2html-finish
|
|
|
|
|
|
|
|
@ln -sf tmp/$@ .
|
|
|
|
|
|
|
|
@echo
|
|
|
|
|
|
|
|
@echo "----- finish ---------------------------------------------------------"
|
|
|
|
|
|
|
|
@echo -n "Start: "$(START); echo
|
|
|
|
|
|
|
|
@echo -n "Finish: "; date
|
|
|
|
|
|
|
|
@echo -n "Output: "; ls -l -o tmp/$@
|
|
|
|
|
|
|
|
@echo -n "Target: "
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|