annotate lisp/progmodes/cc-make.el @ 26760:c55415d59073

*** empty log message ***
author Dave Love <fx@gnu.org>
date Tue, 07 Dec 1999 20:11:42 +0000
parents d03b1e915af1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
24281
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
1 ;;; cc-make.el --- Simplifies compilation.
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
2
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
3 ;; Copyright (C) 1985,87,92,93,94,95,96,97,98 Free Software Foundation, Inc.
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
4
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
5 ;; Authors: 1998 Barry A. Warsaw and Martin Stjernholm
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
6 ;; 1997 Barry A. Warsaw
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
7 ;; Maintainer: bug-cc-mode@gnu.org
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
8 ;; Created: 22-Apr-1997 (split from cc-mode.el)
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
9 ;; Version: See cc-mode.el
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
10 ;; Keywords: c languages oop
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
11
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
12 ;; This program is free software; you can redistribute it and/or modify
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
13 ;; it under the terms of the GNU General Public License as published by
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
14 ;; the Free Software Foundation; either version 2 of the License, or
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
15 ;; (at your option) any later version.
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
16
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
17 ;; This program is distributed in the hope that it will be useful,
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
20 ;; GNU General Public License for more details.
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
21
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
22 ;; You should have received a copy of the GNU General Public License
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
23 ;; along with GNU Emacs; see the file COPYING. If not, write to the
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
24 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
25 ;; Boston, MA 02111-1307, USA.
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
26
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
27 (defconst cc-path-to-the-custom-library
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
28 ;; In Emacs 19.34, change the following line to the directory that
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
29 ;; contains Per Abrahamsen's new Custom library, which you must
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
30 ;; download first. You can get Custom from:
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
31 ;;
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
32 ;; http://www.dina.kvl.dk/~abraham/custom/
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
33 ;;
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
34 ;; See the CC Mode homepage for installation details:
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
35 ;;
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
36 ;; http://www.python.org/emacs/cc-mode/
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
37 nil
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
38 )
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
39
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
40 (if cc-path-to-the-custom-library
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
41 (setq load-path (cons cc-path-to-the-custom-library load-path)))
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
42
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
43 (if (not (and (condition-case nil
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
44 (require 'custom)
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
45 (error nil))
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
46 ;; Stock Emacs 19.34 doesn't have this
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
47 (fboundp 'defcustom)))
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
48 (error "STOP! STOP! STOP! STOP!
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
49
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
50 The Custom library was not found or is out of date. A more current
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
51 version is required to use CC Mode 5. You MUST fix cc-make.el. See
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
52 that file or the CC Mode Web site for details:
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
53
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
54 <http://www.python.org/emacs/cc-mode/"))
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
55
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
56 (setq load-path (cons default-directory load-path))
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
57
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
58 (batch-byte-compile)
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
59
d03b1e915af1 Initial revision
Barry A. Warsaw <barry@zope.org>
parents:
diff changeset
60 ;;; cc-make.el ends here