Function: project-am-load-makefile
project-am-load-makefile is a byte-compiled function defined in
project-am.el.gz.
Signature
(project-am-load-makefile PATH &optional SUGGESTEDNAME)
Documentation
Convert PATH into a project Makefile, and return its project object.
It does not check for existing project objects. Use project-am-load.
Optional argument SUGGESTEDNAME will be the project name.
This is used when subprojects are made in named subdirectories.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/ede/project-am.el.gz
(defun project-am-load-makefile (path &optional suggestedname)
"Convert PATH into a project Makefile, and return its project object.
It does not check for existing project objects. Use `project-am-load'.
Optional argument SUGGESTEDNAME will be the project name.
This is used when subprojects are made in named subdirectories."
(project-am-with-makefile-current path
(if (and ede-object (project-am-makefile-p ede-object))
ede-object
(let* ((pi (project-am-package-info path))
(fn buffer-file-name)
(sfn (when suggestedname
(project-am-last-dir suggestedname)))
(pn (or sfn (nth 0 pi) (project-am-last-dir fn)))
(ver (or (nth 1 pi) "0.0"))
(bug (nth 2 pi))
(cof (nth 3 pi))
(ampf (project-am-makefile
pn :name pn
:version ver
:mailinglist (or bug "")
:file fn)))
(oset ampf directory (file-name-directory fn))
(oset ampf configureoutputfiles cof)
(setq-local ede-object ampf)
;; Move the rescan after we set ede-object to prevent recursion
(project-rescan ampf)
ampf))))