X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/eeff0f485929b225f9b302e5957a654f4a367305..c7015153512a7d00aba390cc1f9a6b512a9c9ed7:/lisp/cedet/ede/linux.el?ds=sidebyside diff --git a/lisp/cedet/ede/linux.el b/lisp/cedet/ede/linux.el index 451c1ea521..0ed9c3054e 100644 --- a/lisp/cedet/ede/linux.el +++ b/lisp/cedet/ede/linux.el @@ -1,6 +1,6 @@ ;;; ede/linux.el --- Special project for Linux -;; Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. +;; Copyright (C) 2008-2011 Free Software Foundation, Inc. ;; Author: Eric M. Ludlam @@ -62,7 +62,7 @@ DIR is the directory to search from." (if proj (ede-up-directory (file-name-directory (oref proj :file))) - ;; No pre-existing project. Lets take a wild-guess if we have + ;; No pre-existing project. Let's take a wild-guess if we have ;; an Linux project here. (when (string-match "linux[^/]*" dir) (let ((base (substring dir 0 (match-end 0)))) @@ -101,7 +101,7 @@ Return nil if there isn't one. Argument DIR is the directory it is created for. ROOTPROJ is nil, since there is only one project." (or (ede-linux-file-existing dir) - ;; Doesn't already exist, so lets make one. + ;; Doesn't already exist, so let's make one. (ede-linux-project "Linux" :name "Linux" :version (ede-linux-version dir) @@ -112,6 +112,18 @@ ROOTPROJ is nil, since there is only one project." ) ) +;;;###autoload +(add-to-list 'ede-project-class-files + (ede-project-autoload "linux" + :name "LINUX ROOT" + :file 'ede/linux + :proj-file "scripts/ver_linux" + :proj-root 'ede-linux-project-root + :load-type 'ede-linux-load + :class-sym 'ede-linux-project + :new-p nil) + t) + (defclass ede-linux-target-c (ede-target) () "EDE Linux Project target for C code. @@ -124,7 +136,7 @@ All directories need at least one target.") (defmethod initialize-instance ((this ede-linux-project) &rest fields) - "Make sure the :file is fully expanded." + "Make sure the targets slot is bound." (call-next-method) (unless (slot-boundp this 'targets) (oset this :targets nil))) @@ -233,5 +245,4 @@ Knows about how the Linux source tree is organized." ;; generated-autoload-load-name: "ede/linux" ;; End: -;; arch-tag: 41f310c8-b169-4259-8a2d-0ff4bd0a736d ;;; ede/linux.el ends here