Initial Commit
[packages] / xemacs-packages / ede / ede-proj-aux.el
1 ;;; ede-proj-aux.el --- EDE Generic Project auxilliary file support
2
3 ;;;  Copyright (C) 1998, 1999, 2000, 2007  Eric M. Ludlam
4
5 ;; Author: Eric M. Ludlam <zappo@gnu.org>
6 ;; Keywords: project, make
7 ;; RCS: $Id: ede-proj-aux.el,v 1.1 2007-11-26 15:22:07 michaels Exp $
8
9 ;; This software is free software; you can redistribute it and/or modify
10 ;; it under the terms of the GNU General Public License as published by
11 ;; the Free Software Foundation; either version 2, or (at your option)
12 ;; any later version.
13
14 ;; This software is distributed in the hope that it will be useful,
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 ;; GNU General Public License for more details.
18
19 ;; You should have received a copy of the GNU General Public License
20 ;; along with GNU Emacs; see the file COPYING.  If not, write to the
21 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 ;; Boston, MA 02110-1301, USA.
23
24 ;;; Commentary:
25 ;;
26 ;; Handle auxiliary files (README, FAQ, etc) in and EDE Project file.
27
28 (require 'ede-proj)
29 (require 'ede-pmake)
30
31 ;;; Code:
32 (defclass ede-proj-target-aux (ede-proj-target)
33   ((sourcetype :initform (ede-aux-source)))
34   "This target consists of aux files such as READMEs and COPYING.")
35
36 (defvar ede-aux-source
37   (ede-sourcecode "ede-aux-source"
38                   :name "Auxiliary"
39                   :sourcepattern "^[A-Z]+$\\|\\.txt$")
40   "Miscelaneous fields definition.")
41
42 (defmethod ede-proj-makefile-sourcevar ((this ede-proj-target-aux))
43   "Return the variable name for THIS's sources."
44   (concat (ede-pmake-varname this) "_AUX"))
45
46 (provide 'ede-proj-aux)
47
48 ;;; ede-proj-aux.el ends here