Index: lisp/pcmpl-gnu.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/pcmpl-gnu.el,v retrieving revision 1.4 diff -u -r1.4 pcmpl-gnu.el --- lisp/pcmpl-gnu.el 1 Sep 2003 15:45:13 -0000 1.4 +++ lisp/pcmpl-gnu.el 12 Feb 2004 21:33:33 -0000 @@ -113,10 +113,11 @@ (defun pcmpl-gnu-make-rule-names () "Return a list of possible make rule names in MAKEFILE." (let* ((minus-f (member "-f" pcomplete-args)) + (dir (cadr (member "-C" pcomplete-args))) (makefile (or (cadr minus-f) - (if (file-exists-p "GNUmakefile") - "GNUmakefile" - "Makefile"))) + (if (file-exists-p (expand-file-name "GNUmakefile" dir)) + (expand-file-name "GNUmakefile" dir) + (expand-file-name "Makefile" dir)))) rules) (if (not (file-readable-p makefile)) (unless minus-f (list "-f"))