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