Source

auctex / Makefile

Full commit
# Makefile for AUC TeX 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 = 1.35
AUTHOR_VERSION = 11.13
MAINTAINER = Uwe Brauer <oub@eucmos.sim.ucm.es>
PACKAGE = auctex
PKG_TYPE = regular
REQUIRES = xemacs-base
CATEGORY = standard

include ../../Local.rules.inc

ELCS = auc-old.elc bib-cite.elc font-latex.elc latex.elc \
	multi-prompt.elc tex-buf.elc tex-info.elc tex-mik.elc \
	tex.elc texmathp.elc  font-latex.elc

EXTRA_SOURCES = CHANGES PROBLEMS README INSTALLATION tex-site.el

ETC_ELCS = etc/prosper.elc \
	   etc/slides.elc    etc/foils.elc    etc/amstex.elc \
	   etc/article.elc   etc/book.elc     etc/letter.elc \
	   etc/report.elc    etc/amsart.elc   etc/amsbook.elc \
	   etc/epsf.elc      etc/psfig.elc    etc/latexinfo.elc \
	   etc/dutch.elc     etc/german.elc   etc/dk.elc \
	   etc/j-article.elc etc/j-book.elc   etc/j-report.elc \
	   etc/jarticle.elc  etc/jbook.elc    etc/jreport.elc \
	   etc/dinbrief.elc  etc/virtex.elc   etc/plfonts.elc \
	   etc/plhb.elc      etc/harvard.elc	etc/swedish.elc \
	   etc/danish.elc    etc/slovak.elc   etc/czech.elc \
	   etc/amsmath.elc   etc/amstext.elc  etc/amsbsy.elc \
	   etc/amsopn.elc    etc/amsthm.elc	etc/natbib.elc \
	   etc/index.elc     etc/makeidx.elc  etc/multind.elc \
	   etc/varioref.elc  etc/fancyref.elc	etc/mdwlist.elc \
	   etc/ngerman.elc   etc/graphicx.elc	etc/graphics.elc \
	   etc/verbatim.elc  etc/scrbase.elc  etc/scrartcl.elc \
	   etc/scrbook.elc   etc/scrreprt.elc	etc/scrlttr2.elc

EXTRA_DEPENDENCIES = $(ETC_ELCS) texi/math-ref.dvi texi/tex-ref.dvi \
	texi/math-ref.log texi/tex-ref.log INSTALLATION README CHANGES

DATA_FILES = $(ETC_ELCS) $(ETC_ELCS:%.elc=%.el)
DATA_DEST = $(PACKAGE)/style

EXPLICIT_DOCS = texi/auc-tex.texi
EXTRA_TEXI_FILES = texi/changes.texi texi/history.texi texi/install.texi \
		   texi/intro.texi
EXTRA_DOC_FILES = texi/math-ref.tex texi/tex-ref.tex

PRELOADS = -l lpath.el

ifeq ($(BUILD_WITHOUT_MULE),)
ELCS += tex-jp.elc
endif

include ../../XEmacs.rules

%.dvi: %.tex
ifneq ($(TEX),)
	cd $(@D) && $(TEX) $(*F)
else
	-
endif

## 70+ pages
texi/auc-tex.dvi: texi/auc-tex.texi
	cd $(@D) && $(TEX) "\nonstopmode\input auc-tex.texi" \
	&& texindex auc-tex.ky && texindex auc-tex.fn \
	&& texindex auc-tex.vr && texindex auc-tex.cp \
	&& $(TEX) "\nonstopmode\input auc-tex.texi"

RUN_MAKEINFO_INDIVIDUAL = $(MAKEINFO) --no-headers -o $@ $<

INSTALLATION: texi/install.texi
	-$(RUN_MAKEINFO_INDIVIDUAL)

README: texi/intro.texi
	-$(RUN_MAKEINFO_INDIVIDUAL)

CHANGES: texi/changes.texi
	-$(RUN_MAKEINFO_INDIVIDUAL)

# does not build.
HISTORY: texi/history.texi
	-$(RUN_MAKEINFO_INDIVIDUAL)