628416449f512608ca9769f9a941f328839a3ce0
[bpt/emacs.git] / lisp / cedet / ede / proj-aux.el
1 ;;; ede/proj-aux.el --- EDE Generic Project auxiliary file support
2
3 ;; Copyright (C) 1998-2000, 2007, 2009-2013 Free Software Foundation,
4 ;; Inc.
5
6 ;; Author: Eric M. Ludlam <zappo@gnu.org>
7 ;; Keywords: project, make
8
9 ;; This file is part of GNU Emacs.
10
11 ;; GNU Emacs is free software: you can redistribute it and/or modify
12 ;; it under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation, either version 3 of the License, or
14 ;; (at your option) any later version.
15
16 ;; GNU Emacs is distributed in the hope that it will be useful,
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;; GNU General Public License for more details.
20
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
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-txt"
38 :name "Auxiliary Text"
39 :sourcepattern "^[A-Z]+$\\|\\.txt$")
40 "Miscellaneous 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