Function: ede-proj-makefile-insert-loadpath-items

ede-proj-makefile-insert-loadpath-items is a byte-compiled function defined in proj-elisp.el.gz.

Signature

(ede-proj-makefile-insert-loadpath-items ITEMS)

Documentation

Insert a sequence of ITEMS into the Makefile LOADPATH variable.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/ede/proj-elisp.el.gz
(defun ede-proj-makefile-insert-loadpath-items (items)
  "Insert a sequence of ITEMS into the Makefile LOADPATH variable."
    (when items
      (ede-pmake-insert-variable-shared "LOADPATH"
	(let ((begin (save-excursion (re-search-backward "\\s-*="))))
	  (while items
	    (when (not (save-excursion
			 (re-search-backward
			  (concat "\\s-" (regexp-quote (car items)) "[ \n\t\\]")
			  begin t)))
	      (insert " " (car items)))
	    (setq items (cdr items)))))
      ))