# Makefile for AUCTeX lisp code # This file is part of XEmacs. # XEmacs is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 2, or (at your option) any # later version. # XEmacs is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # You should have received a copy of the GNU General Public License # along with XEmacs; see the file COPYING. If not, write to # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. VERSION = 2.01 AUTHOR_VERSION = 11.92 MAINTAINER = Steve Youngs PACKAGE = auctex PKG_TYPE = regular REQUIRES = xemacs-base edit-utils fsf-compat texinfo reftex auctex \ mail-lib sh-script textools dired ispell os-utils text-modes \ w3 CATEGORY = standard PRELOADS = -l sxepkg.el include ../../Local.rules ## Extra cmds/opts (LATEX & TEX are already defined in XEmacs.rules) MAKEINFO_PLAIN = -D rawfile --no-headers PDFTEX = pdftex PDFLATEX = pdflatex ## The lisp ELCS = bib-cite.elc context-en.elc context-nl.elc context.elc \ font-latex.elc latex.elc multi-prompt.elc plain-tex.elc \ preview.elc prv-xemacs.elc tex-bar.elc tex-buf.elc \ tex-fold.elc tex-font.elc tex-info.elc tex-ispell.elc \ tex-mik.elc tex-style.elc tex-wizard.elc tex.elc \ texmathp.elc toolbar-x.elc ifeq ($(BUILD_WITHOUT_MULE),) ELCS += tex-jp.elc endif FLATS = README INSTALL TODO FAQ CHANGES PROBLEMS.preview PRINTABLES = \ doc/tex-ref.dvi doc/tex-ref.ps doc/tex-ref.pdf \ doc/auctex.dvi doc/auctex.ps doc/auctex.pdf \ doc/preview-latex.dvi doc/preview-latex.ps \ doc/preview-latex.pdf TEXMFGEN = \ latex/preview.sty latex/prauctex.def latex/prauctex.cfg \ latex/prshowbox.def latex/prshowlabels.def latex/prtracingall.def \ latex/prtightpage.def latex/prlyx.def latex/prcounters.def \ latex/prfootnotes.def PREVIEW = latex/preview-mk.ins latex/preview.ins latex/preview.drv PREVIEWDOC = latex/preview.dvi latex/preview.pdf PRVLATEX = $(TEXMFGEN) $(PREVIEW) $(PREVIEWDOC) EXTRA_DEPENDENCIES = $(FLATS) $(PRINTABLES) $(PRVLATEX) ## LaTeX Style STYLESRC = $(wildcard style/*.el) STYLEELC = $(STYLESRC:.el=.elc) # Build the style files by abusing ELCS_1. We set it during compile, # but unset it during installs. Normally, ELCS_1 files are installed # to a subdir under lisp/$PACKAGE and we REALLY DON'T WANT THAT for # AUCTeX style files. Those shouldn't be anywhere near a load-path. # They are installed to etc/auctex/style. (see: DATA_FILES, DATA_DEST). ELCS_1 = $(STYLEELC) ifeq ('$(MAKECMDGOALS)','install') ELCS_1 = endif ifeq ('$(MAKECMDGOALS)','bindist') ELCS_1 = endif ## Extra bits and bobs to be installed into the lisp directory EXTRA_SOURCES = $(wildcard ChangeLog.d/*) $(FLATS) auctex.el \ tex-site.el RELEASE ## LaTeX styles DATA_FILES = $(STYLEELC) $(STYLESRC) DATA_DEST = $(PACKAGE)/style ## Images (includes Preview LaTeX images) DATA_1_FILES = $(wildcard images/*.xpm) DATA_1_DEST = $(PACKAGE)/images ## Preview LaTeX sty texmf # These should ideally be installed to a texmf directory with the ls-R # database updated for them. However, that's a little beyond the # scope of SXEmacs packages and things will still operate OK without # this (though not outside of AUCTeX/SXEmacs) DATA_2_FILES = $(TEXMFGEN) $(PREVIEW) DATA_2_DEST = $(PACKAGE)/latex DATA_3_FILES = latex/bootstrap.ins latex/preview.dtx latex/README DATA_3_DEST = $(PACKAGE)/latex ## Printables (dvi, ps, pdf) DATA_4_FILES = $(PRINTABLES) $(PREVIEWDOC) doc/tex-ref.tex circ.tex DATA_4_DEST = $(PACKAGE)/doc ## Info EXPLICIT_DOCS = doc/auctex.texi doc/preview-latex.texi EXTRA_TEXI_FILES = \ doc/changes.texi doc/faq.texi doc/fdl.texi doc/install.texi \ doc/intro.texi doc/macros.texi doc/preview-dtxdoc.texi \ doc/preview-faq.texi doc/preview-problems.texi \ doc/preview-readme.texi doc/preview-todo.texi \ doc/quickstart.texi doc/todo.texi doc/version.texi \ doc/wininstall.texi doc/history.texi ## Some extra bits that the clean target misses. CLEAN_FILES = \ doc/tex-ref.log $(wildcard latex/*.log) latex/preview.aux include ../../XEmacs.rules ## Generate the preview-latex TEXINPUTS="./latex:" latex/preview-mk.ins: latex/preview.dtx latex/bootstrap.ins $(TEX) --output-directory=latex \ '\nonstopmode \input bootstrap.ins' latex/preview.ins: latex/preview.dtx $(TEX) --output-directory=latex \ '\nonstopmode\def\jobname{.ins}\input docstrip ' \ '\generate{\file{preview.ins}{\from{preview.dtx}{installer}}}' \ '\endbatchfile' $(TEXMFGEN) latex/preview.drv: latex/preview.dtx latex/preview-mk.ins $(TEX) --output-directory=latex '\nonstopmode \input preview-mk.ins' latex/preview.dvi: latex/preview.drv latex/preview.dtx latex/preview.sty $(LATEX) --output-directory=latex '\nonstopmode \input preview.drv' $(LATEX) --output-directory=latex '\nonstopmode \input preview.drv' $(LATEX) --output-directory=latex '\nonstopmode \input preview.drv' latex/preview.pdf: latex/preview.drv latex/preview.dtx latex/preview.sty $(PDFLATEX) --output-directory=latex \ '\nonstopmode \AtBeginDocument{\OnlyDescription}\input{preview.drv}' $(PDFLATEX) --output-directory=latex \ '\nonstopmode \AtBeginDocument{\OnlyDescription}\input{preview.drv}' $(PDFLATEX) --output-directory=latex \ '\nonstopmode \AtBeginDocument{\OnlyDescription}\input{preview.drv}' ## A plethora of extra docs and manuals README: doc/intro.texi doc/preview-readme.texi doc/macros.texi $(MAKEINFO) $(MAKEINFO_PLAIN) doc/intro.texi --output $@ $(MAKEINFO) $(MAKEINFO_PLAIN) doc/preview-readme.texi --output - >> $@ INSTALL: doc/install.texi doc/macros.texi $(MAKEINFO) $(MAKEINFO_PLAIN) doc/install.texi --output $@ TODO: doc/todo.texi doc/preview-todo.texi doc/macros.texi $(MAKEINFO) $(MAKEINFO_PLAIN) doc/todo.texi --output $@ $(MAKEINFO) $(MAKEINFO_PLAIN) doc/preview-todo.texi --output - >> $@ FAQ: doc/faq.texi doc/preview-faq.texi doc/macros.texi $(MAKEINFO) $(MAKEINFO_PLAIN) doc/faq.texi --output $@ $(MAKEINFO) $(MAKEINFO_PLAIN) --number-sections doc/preview-faq.texi \ --output - >> $@ CHANGES: doc/changes.texi doc/macros.texi $(MAKEINFO) $(MAKEINFO_PLAIN) doc/changes.texi --output $@ PROBLEMS.preview: doc/preview-problems.texi doc/macros.texi $(MAKEINFO) $(MAKEINFO_PLAIN) --number-sections \ doc/preview-problems.texi --output $@ doc/tex-ref.dvi: doc/tex-ref.tex $(TEX) -output-directory=doc doc/tex-ref doc/tex-ref.ps: doc/tex-ref.dvi $(DVIPS) doc/tex-ref.dvi -Ppdf -o $@ doc/tex-ref.pdf: doc/tex-ref.tex $(PDFTEX) -output-directory=doc doc/tex-ref.tex doc/auctex.dvi: $(EXPLICIT_DOCS) $(EXTRA_TEXI_FILES) $(TEXI2DVI) -c doc/auctex.texi -o $@ doc/auctex.ps: $(EXPLICIT_DOCS) $(EXTRA_TEXI_FILES) $(DVIPS) doc/auctex.dvi -Ppdf -o $@ doc/auctex.pdf: $(EXPLICIT_DOCS) $(EXTRA_TEXI_FILES) $(TEXI2PDF) -c doc/auctex.texi -o $@ doc/preview-latex.dvi: $(EXPLICIT_DOCS) $(EXTRA_TEXI_FILES) $(TEXI2DVI) -c doc/preview-latex.texi -o $@ doc/preview-latex.ps: $(EXPLICIT_DOCS) $(EXTRA_TEXI_FILES) $(DVIPS) doc/preview-latex.dvi -Ppdf -o $@ doc/preview-latex.pdf: $(EXPLICIT_DOCS) $(EXTRA_TEXI_FILES) $(TEXI2PDF) -c doc/preview-latex.texi -o $@ clean:: rm -f $(CLEAN_FILES)