diff options
| author | John Wiegley <johnw@newartisans.com> | 2008-09-01 20:08:16 -0400 |
|---|---|---|
| committer | John Wiegley <johnw@newartisans.com> | 2008-09-01 21:35:02 -0400 |
| commit | 82df326680e889d2cc17434aee13e4c4f1c943dc (patch) | |
| tree | f71b6cde258537c1f96e363b9ccf775f91fd4170 | |
| parent | 8d899ce1af47b6ef0223ffd51ce77d5b56c39401 (diff) | |
chess-auto.el is built properly now.
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | Makefile.am | 13 | ||||
| -rw-r--r-- | chess-auto.el.in | 11 | ||||
| -rw-r--r-- | chess-maint.el | 34 |
4 files changed, 43 insertions, 16 deletions
@@ -20,6 +20,7 @@ /Makefile.in /TAGS /aclocal.m4 +/auto-autoloads.el /autom4te.cache /chess-auto.el /chess-eco.fen diff --git a/Makefile.am b/Makefile.am index 711161b..4d75345 100644 --- a/Makefile.am +++ b/Makefile.am @@ -54,12 +54,15 @@ dist_lisp_LISP = \ chess-var.el \ chess-eco.el -chess-auto.el: $(ELFILES) chess-auto.el.in - cp -p $(srcdir)/chess-auto.el.in $@ - -rm $(top_builddir)/chess-auto.elc - $(EMACS) --no-init-file --no-site-file -batch \ - -L $(top_builddir) -l chess-auto -f generate-autoloads \ +chess-auto.el: $(ELFILES) + echo ";;; DO NOT MODIFY THIS FILE" > $(top_builddir)/chess-auto.el + echo "(if (featurep 'chess-auto) (error \"Already loaded\"))" \ + >> $(top_builddir)/chess-auto.el + $(EMACS) -batch -L $(srcdir) -l chess-maint.el \ + -f chess-generate-autoloads \ $(top_builddir)/chess-auto.el $(srcdir) + echo "(provide 'chess-auto)" >> $(top_builddir)/chess-auto.el + ln -f $(top_builddir)/chess-auto.el $(top_builddir)/auto-autoloads.el chess-eco.fen: chess-eco.pos chess-eco.el $(EMACS) --no-init-file --no-site-file -batch \ diff --git a/chess-auto.el.in b/chess-auto.el.in deleted file mode 100644 index 270a346..0000000 --- a/chess-auto.el.in +++ /dev/null @@ -1,11 +0,0 @@ -;;; -*-emacs-lisp-*- - -(require 'autoload) - -(defun generate-autoloads () - (interactive) - (setq generated-autoload-file (car command-line-args-left)) - (setq command-line-args-left (cdr command-line-args-left)) - (batch-update-autoloads)) - -;;; Generated autoloads follow (made by autoload.el). diff --git a/chess-maint.el b/chess-maint.el new file mode 100644 index 0000000..4aa8001 --- /dev/null +++ b/chess-maint.el @@ -0,0 +1,34 @@ +;;; chess-maint.el --- code to help build chess -*- no-byte-compile: t -*- + +;; Copyright (C) 2008 Free Software Foundation, Inc. + +;; Author: John Wiegley <johnw@gnu.org> + +;; This file is part of GNU Emacs. + +;; GNU Emacs 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 3 of the License, or +;; (at your option) any later version. + +;; GNU Emacs 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 GNU Emacs. If not, see <http://www.gnu.org/licenses/>. + +;;; Code: + +(provide 'chess-maint) + +(defun chess-generate-autoloads () + (interactive) + (require 'autoload) + (setq generated-autoload-file + (expand-file-name (car command-line-args-left))) + (setq command-line-args-left (cdr command-line-args-left)) + (batch-update-autoloads)) + +;;; chess-maint.el ends here |
