the first difficulties in syncr auctex 11.84

Mats Lidell matsl at xemacs.org
Wed Feb 7 19:27:57 EST 2007


Hi Uwe

You wrote:

Uwe> Stephen Turnbull asked me to copy that mail to the list. May
Uwe> somebody has an idea about the mistake

Uwe> Here is the structure

Uwe>  auctex        : with lisp files such as tex.el etc and the Makefile
Uwe>  auctex/etc    : which contains the additionally style lisp files.
Uwe>  auctex/images : not been touched
Uwe>  auctex/preview: lisp files
Uwe>                   images: xpm
Uwe>                   latex: style files

In my setup I have simply used the auctex distribution and dropped
that into the XEmacs Packages which basically means I kept the
"styles" folder. I have then run configure to get all generated files.

At that stage I moved a way the configured Makefile and dropped in a
copy of the old Makefile from the XEmacs Packages for auctex. Then I
tweaked it a bit.

Uwe> I tool your makefile

Uwe> And even make autoloads fails

Uwe> ,---- | make: Circular tex-site.el.out <- tex-site.el dependency
Uwe> dropped.  | cp tex-site.el.out | cp: missing destination file
Uwe> operand after `tex-site.el.out' | Try `cp --help' for more
Uwe> information.  | make: *** [tex-site.el.out] Error 1
Uwe> | 
Uwe> `----
Uwe> No idea where that destination should be
Uwe> running make gives the same error.

Uwe> You did not got that error??

At that time I ignored the circular dependency. Looking at it today
indicates that there seems to be an ".out"-rule that is causing it. I
renamed tex-site.el.out to tex-site.el.OUT to get away with
that. (Whether or not tex-site.el should be generated is another
matter. At the moment I just want to stay close to what the
distribution is doing.)

I did not get the problem with cp. Hmm... you must have triggered the
.out-rule I mention above which I wasn't since I used configure to get
the tex-site.el.out file!?

Well I have come up with yet another go at the Makefile. This time it
even builds some docs, for me that is, but it is not final yet. I have
_not_ tried to run the result so there might be some more problems
ahead ;-)

----------------------------------------------------------------------
# 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.47
AUTHOR_VERSION = 11.84
MAINTAINER = Uwe Brauer <oub at mat.ucm.es>
PACKAGE = auctex
PKG_TYPE = regular
REQUIRES = xemacs-base texinfo fsf-compat mail-lib edit-utils
CATEGORY = standard

include ../../Local.rules

ELCC=$(XEMACS) -batch -q -no-site-file -no-init-file -l lpath.el

MULESRC = tex-jp.el
MULEELC = tex-jp.elc

AUCSRC = tex.el tex-buf.el tex-style.el latex.el tex-info.el \
	texmathp.el multi-prompt.el tex-mik.el font-latex.el tex-font.el \
	context.el context-en.el context-nl.el tex-fold.el \
	toolbar-x.el tex-bar.el bib-cite.el tex-fptex.el
AUCELC = $(AUCSRC:.el=.elc)

STYLESRC = style/prosper.el \
	   style/slides.el    style/foils.el     style/amstex.el \
	   style/article.el   style/book.el      style/letter.el \
	   style/report.el    style/amsart.el    style/amsbook.el \
	   style/epsf.el      style/psfig.el     style/latexinfo.el \
	   style/dutch.el     style/german.el    style/dk.el \
	   style/j-article.el style/j-book.el    style/j-report.el \
	   style/jarticle.el  style/jbook.el     style/jreport.el \
	   style/dinbrief.el  style/virtex.el    style/plfonts.el \
	   style/plhb.el      style/harvard.el	 style/swedish.el \
	   style/danish.el    style/slovak.el    style/czech.el \
	   style/amsmath.el   style/amstext.el   style/amsbsy.el \
	   style/amsopn.el    style/amsthm.el	 style/natbib.el \
	   style/index.el     style/makeidx.el   style/multind.el \
	   style/varioref.el  style/fancyref.el	 style/mdwlist.el \
	   style/ngerman.el   style/graphicx.el	 style/graphics.el \
	   style/verbatim.el  style/scrbase.el   style/scrartcl.el \
	   style/scrbook.el   style/scrreprt.el	 style/scrlttr2.el \
	   style/scrpage2.el  style/captcont.el  style/subfigure.el \
	   style/paralist.el  style/booktabs.el  style/emp.el \
	   style/jura.el      style/alphanum.el	 style/beamer.el \
	   style/alltt.el     style/italian.el   style/doc.el \
	   style/ltxdoc.el    style/ltx-base.el	 style/units.el \
	   style/nicefrac.el  style/url.el       style/listings.el \
	   style/jurabib.el   style/csquotes.el  style/jsarticle.el \
	   style/jsbook.el    style/babel.el     style/dk-bib.el \
	   style/inputenc.el  style/frenchb.el   style/francais.el \
	   style/MinionPro.el style/pdfsync.el   style/polish.el \
	   style/polski.el
STYLEELC = $(STYLESRC:.el=.elc)

CLEANFILES = $(AUCELC) $(STYLEELC) $(MULEELC)
DISTCLEANFILES = tex-site.el auctex.el auto-loads.el
DISTTEXTS = FAQ INSTALL INSTALL.windows README TODO

EXTRA_SOURCES = CHANGES PROBLEMS README FAQ RELEASE TODO \
	ChangeLog.auctex tex-site.el  

EXTRA_SOURCES = tex-site.el

EXTRA_DEPENDENCIES = $(STYLEELC) \
	doc/tex-ref.dvi doc/tex-ref.log \
	INSTALLATION README CHANGES

DATA_FILES = $(STYLEELC) $(STYLESRC)
DATA_DEST = $(PACKAGE)/style
DATA_1_FILES = .dummy
DATA_1_DEST = $(PACKAGE)/var
DATA_2_FILES = $(wildcard images/*.xpm)
DATA_2_DEST = $(PACKAGE)/images

PRVSRC = preview/prv-emacs.el preview/preview.el preview/prv-xemacs.el
ELCS_1 = $(PRVSRC:.el=.elc)
ELCS_1_DEST = $(PACKAGE)
ELCS_1_FILES = $(ELCS_1) $(PRVSRC)

ICON_SOURCES = \
 preview/images/prverr16.xpm  preview/images/prverr20.xpm       preview/images/prverr24.xbm \
 preview/images/prverr24.xpm  preview/images/prvtex-cap-up.xpm  preview/images/prvtex12.xbm \
 preview/images/prvtex12.xpm  preview/images/prvtex16.xbm       preview/images/prvtex16.xpm \
 preview/images/prvtex20.xpm  preview/images/prvtex24.xbm       preview/images/prvtex24.xpm \
 preview/images/prvwrk12.xpm  preview/images/prvwrk14.xpm       preview/images/prvwrk16.xpm \
 preview/images/prvwrk20.xpm  preview/images/prvwrk24.xbm       preview/images/prvwrk24.xpm
DATA_3_FILES = $(ICON_SOURCES)
DATA_3_DEST = $(PACKAGE)/images

EXPLICIT_DOCS = doc/auctex.texi doc/preview-latex.texi doc/tex-ref.tex
EXTRA_TEXI_FILES = \
	doc/changes.texi doc/faq.texi doc/fdl.texi doc/install.texi \
	doc/intro.texi doc/macros.texi doc/quickstart.texi  \
	doc/todo.texi doc/version.texi \
	doc/preview-dtxdoc.texi doc/preview-faq.texi	  \
	doc/preview-problems.texi doc/preview-readme.texi \
	doc/preview-todo.texi

PRELOADS = -eval '(setq load-path (cons "." (cons "preview" load-path)))'

ELCS = $(AUCELC)

ifeq ($(BUILD_WITHOUT_MULE),)
ELCS += $(MULEELC)
endif

EARLY_GENERATED_LISP = tex-site.el auto-loads.el

include ../../XEmacs.rules

tex-site.el: tex-site.el.OUT auto-loads.el Makefile
	cat tex-site.el.OUT >$@
	cat auto-loads.el >>$@
	echo "(provide 'tex-site)" >>$@
	echo ";;; tex-site.el ends here" >>$@

auto-loads.el: $(AUCSRC) $(MULESRC) Makefile
	{ \
	  rm -f $@ ; \
	  $(ELCC) $(AUTOLOAD) $(AUCSRC) $(MULESRC) || : ; \
	  test -r $@ || { \
	    echo ";; Auto-generated part of tex-site.el" > $@ ; \
	    echo "" >> $@ ; \
	    $(ELCC) $(AUTOLOAD) $(AUCSRC) $(MULESRC) ; \
	  } ; \
	}

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

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

RUN_MAKEINFO_INDIVIDUAL = $(MAKEINFO) -I doc/ --no-validate  --force --no-headers -o $@ $<

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

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

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

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

Yours
-- 
%% Mats



More information about the XEmacs-Beta mailing list