Re: Bugs in installing...
Ralf Angeli <[email protected]> Thu, 24 Mar 2005 12:29:37 +0100
| Newsgroups | gmane.emacs.auc-tex |
|---|---|
| Message-ID | <[email protected]> |
* Jan-Åke Larsson (2005-03-23) writes: > David Kastrup wrote: >> The AUCTeX procedure of generating a tarball right now is: use "cvs >> export" with a tag name to get the right version tags, do ./autogen.sh >> (which could possibly be replaced by just running autoconf), do a >> ./configure with arbitrary options, then run make to generate the >> tarball. > > OK. I have not implemented the full AUCTeX dist target, since you > didn't ask for it (did I just say that? yikes!) I have made some > changes to the make targets: > > clean: remove things make has created, except things needed in the > tarball (see below) > distclean: make clean and remove things created by configure > (including Makefile, so beware) > maintainer-clean: make distclean and also things created by the > tarball-ready target Hm, as far as I interpret ,----[ (info "(make)Standard Targets") ] | `distclean' | Delete all files from the current directory that are created by | configuring or building the program. If you have unpacked the | source and built the program without creating any other files, | `make distclean' should leave only the files that were in the | distribution. `---- the distclean target should not delete autom4te.cache. Before I have to throw it away and because it has been waiting for several weeks in my working directory, here is what I'd propose for AUCTeX's Makefile.in: --8<---------------cut here---------------start------------->8--- --- Makefile.in 7 Mar 2005 18:30:55 -0000 1.80 +++ Makefile.in 24 Mar 2005 11:24:39 -0000 @@ -44,11 +44,7 @@ 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 tex-style.el -AUCELC = tex.elc tex-buf.elc latex.elc tex-info.elc \ - texmathp.elc multi-prompt.elc tex-mik.elc font-latex.elc tex-font.elc \ - context.elc context-en.elc context-nl.elc tex-fold.elc \ - toolbar-x.elc tex-bar.elc -# Why not $(AUCSRC:.el=.elc) ? +AUCELC = $(AUCSRC:.el=.elc) STYLESRC = style/prosper.el \ style/slides.el style/foils.el style/amstex.el \ @@ -86,6 +82,10 @@ configure install-sh $(MKINSTALLDIRS) Makefile.in \ tex-site.el.in lpath.el $(CONTRIB) $(CONTRIB_MULE) +CLEANFILES = $(AUCELC) $(STYLESRC:.el=.elc) + +DISTCLEANFILES = Makefile tex-site.el config.* + NOSEARCH = style/.nosearch all: lisp @@ -172,11 +172,18 @@ $(ELCC) -f batch-byte-compile $< clean: - rm -rf *~ \#*\# *.elc style/*.elc + rm -f $(CLEANFILES) (cd doc; $(MAKE) clean) -distclean: clean - rm -rf Makefile tex-site.el config.* autom4te.cache +distclean: + rm -f $(CLEANFILES) $(DISTCLEANFILES) + (cd doc; $(MAKE) distclean) + +maintainer-clean: distclean + rm -rf autom4te.cache FAQ INSTALL INSTALL.windows README TODO + +extraclean: maintainer-clean + rm -f *~ \#*\# tar-ball-clean: @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi --8<---------------cut here---------------end--------------->8--- This is not far from your implementation. The names CLEANFILES and DISTCLEANFILES are derived from automake, see (info "(automake-1.8)Clean"). -- Ralf