Function: project-am-expand-subdirlist

project-am-expand-subdirlist is a byte-compiled function defined in project-am.el.gz.

Signature

(project-am-expand-subdirlist PLACE SUBDIRS)

Documentation

Store in PLACE the SUBDIRS expanded from variables.

Strip out duplicates, and recurse on variables.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/ede/project-am.el.gz
(defun project-am-expand-subdirlist (place subdirs)
  "Store in PLACE the SUBDIRS expanded from variables.
Strip out duplicates, and recurse on variables."
  (mapc (lambda (sp)
	  (let ((var (makefile-extract-varname-from-text sp)))
	    (if var
		;; If it is a variable, expand that variable, and keep going.
		(project-am-expand-subdirlist
		 place (makefile-macro-file-list var))
	      ;; Else, add SP in if it isn't a dup.
	      (cl-pushnew sp (gv-deref place) :test #'equal) ;; add
	      )))
	subdirs)
  )