From ca7aae916bab6783c5133d8432b61d97b8ffa923 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 29 Aug 2000 00:47:45 +0000 Subject: See ChangeLog --- lisp/pcmpl-gnu.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lisp/pcmpl-gnu.el') diff --git a/lisp/pcmpl-gnu.el b/lisp/pcmpl-gnu.el index f390f541e25..f7a681c803e 100644 --- a/lisp/pcmpl-gnu.el +++ b/lisp/pcmpl-gnu.el @@ -33,7 +33,7 @@ ;; User Variables: (defcustom pcmpl-gnu-makefile-regexps - '("\\`Makefile\\." "\\.mak\\'") + '("\\`GNUmakefile" "\\`Makefile" "\\.mak\\'") "*A list of regexps that will match Makefile names." :type '(repeat regexp) :group 'pcmpl-gnu) @@ -111,7 +111,10 @@ (defun pcmpl-gnu-make-rule-names () "Return a list of possible make rule names in MAKEFILE." (let* ((minus-f (member "-f" pcomplete-args)) - (makefile (or (cadr minus-f) "Makefile")) + (makefile (or (cadr minus-f) + (if (file-exists-p "GNUmakefile") + "GNUmakefile" + "Makefile"))) rules) (if (not (file-readable-p makefile)) (unless minus-f (list "-f")) -- cgit v1.2.3