diff --git a/GNUmakefile b/GNUmakefile index f1492b5..f7062d8 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -10,3 +10,6 @@ include $(SRCROOT)/etc/const.mk -include $(SRCROOT)/etc/const-local.mk include $(SRCROOT)/etc/rules.mk + +clobber:: + /bin/rm -rf $(OUTPUT_DIR) diff --git a/etc/const-tex.mk b/etc/const-tex.mk index 1bc4ece..93fc402 100644 --- a/etc/const-tex.mk +++ b/etc/const-tex.mk @@ -1,3 +1,59 @@ # # LATEX-specific constants # + +TEX_DVI = $(TEX_SRC_BASENAME).dvi +TEX_PS_LTR = $(WEB_HOME)/$(TEX_SRC_BASENAME).ltr.ps +TEX_PS_A4 = $(WEB_HOME)/$(TEX_SRC_BASENAME).a4.ps +TEX_PDF_LTR = $(WEB_HOME)/$(TEX_SRC_BASENAME).ltr.pdf +TEX_PDF_A4 = $(WEB_HOME)/$(TEX_SRC_BASENAME).a4.pdf +TEX_HTML = $(WEB_HOME)/$(TEX_SRC_BASENAME).html + +# Build artifacts +TEX_GARBAGE = \ + $(TEX_SRC_BASENAME).err \ + $(TEX_SRC_BASENAME).aux \ + $(TEX_SRC_BASENAME).log \ + $(TEX_SRC_BASENAME).toc \ + $(TEX_SRC_BASENAME).idx \ + $(TEX_SRC_BASENAME).ilg \ + $(TEX_SRC_BASENAME).ind \ + $(TEX_SRC_BASENAME).out \ + $(TEX_SRC_BASENAME).dvi + +BIBTEX_GARBAGE = $(TEX_SRC_BASENAME).bbl $(TEX_SRC_BASENAME).blg + +# Various latex-related paths +DVIPS = dvips +DVIPDF = dvipdfm +LATEX = latex +TEX2HTML = latex2html +MAKEINDEX = makeindex +BIBTEX = bibtex + +# Varous latex-related variables +DVIPS_FLAGS = +LATEX_FLAGS = +#TEXINPUTS = ':/usr/local/lib/latex2html' +TEXINPUTS = '' + +# This link will appear as the "up" link at the top page of of +# latex2html-generatd documents. You can override it in the local +# makefile if desired. +TEX_UP_URL = ../../refs.html + +# This is the link name that will be displayed for the TEX_UP_URL, above. +# You can override it in the local makefile if desired. +TEX_UP_TITLE = GNO Documentation + +# This one assumes that all latex-based documents are at the same directory +# depth in the filesystem. If one differs, you can override this in the +# local makefile. +TEX_FEEDBACK_URL = ../../feedback.html + +# TEX_CONTACT will appear at the bottom of latex2html generated pages +#TEX_CONTACT = '$(NAME) <$(ADDRESS)>' +TEX_CONTACT = 'Feedback' + +# Additional flags get defined in tex-rules.mk and local makefiles. +TEX2HTML_FLAGS = -local_icons -address $(TEX_CONTACT) diff --git a/etc/const.mk b/etc/const.mk index 218477c..b663976 100644 --- a/etc/const.mk +++ b/etc/const.mk @@ -63,62 +63,5 @@ BUILD_FILES = GNUmakefile $(HEAD_PAGE) $(TAIL_PAGE) \ $(SRCROOT)/etc/rules.mk \ $(SRCROOT)/etc/tailcat.mk -TEX_DVI = $(TEX_SRC_BASENAME).dvi -TEX_PS_LTR = $(WEB_HOME)/$(TEX_SRC_BASENAME).ltr.ps -TEX_PS_A4 = $(WEB_HOME)/$(TEX_SRC_BASENAME).a4.ps -TEX_PDF_LTR = $(WEB_HOME)/$(TEX_SRC_BASENAME).ltr.pdf -TEX_PDF_A4 = $(WEB_HOME)/$(TEX_SRC_BASENAME).a4.pdf -TEX_HTML = $(WEB_HOME)/$(TEX_SRC_BASENAME).html - - -# Build artifacts -TEX_GARBAGE = \ - $(TEX_SRC_BASENAME).err \ - $(TEX_SRC_BASENAME).aux \ - $(TEX_SRC_BASENAME).log \ - $(TEX_SRC_BASENAME).toc \ - $(TEX_SRC_BASENAME).idx \ - $(TEX_SRC_BASENAME).ilg \ - $(TEX_SRC_BASENAME).ind \ - $(TEX_SRC_BASENAME).out \ - $(TEX_SRC_BASENAME).dvi - -BIBTEX_GARBAGE = $(TEX_SRC_BASENAME).bbl $(TEX_SRC_BASENAME).blg - -# Various latex-related paths -DVIPS = dvips -DVIPDF = dvipdfm -LATEX = latex -TEX2HTML = latex2html -MAKEINDEX = makeindex -BIBTEX = bibtex - -# Varous latex-related variables -DVIPS_FLAGS = -LATEX_FLAGS = -#TEXINPUTS = ':/usr/local/lib/latex2html' -TEXINPUTS = '' - -# This link will appear as the "up" link at the top page of of -# latex2html-generatd documents. You can override it in the local -# makefile if desired. -TEX_UP_URL = ../../refs.html - -# This is the link name that will be displayed for the TEX_UP_URL, above. -# You can override it in the local makefile if desired. -TEX_UP_TITLE = GNO Documentation - -# This one assumes that all latex-based documents are at the same directory -# depth in the filesystem. If one differs, you can override this in the -# local makefile. -TEX_FEEDBACK_URL = ../../feedback.html - -# TEX_CONTACT will appear at the bottom of latex2html generated pages -#TEX_CONTACT = '$(NAME) <$(ADDRESS)>' -TEX_CONTACT = 'Feedback' - -# Additional flags get defined in tex-rules.mk and local makefiles. -TEX2HTML_FLAGS = -local_icons -address $(TEX_CONTACT) - # This is where the files will eventually wind up. TARGET_DIR = $(GNO_PUBLIC_HTML)/$(WEB_HOME_BASE)