zsh-workers
 help / color / mirror / code / Atom feed
From: SATOH Fumiyasu <fumiyas@osstech.co.jp>
To: zsh-workers@zsh.org
Subject: [PATCH] include Makefile relative from the current working directory
Date: Sat, 25 Nov 2017 19:59:28 +0900	[thread overview]
Message-ID: <87wp2eobmf.wl-fumiyas@osstech.co.jp> (raw)

Don't include Makefile relative from the current Makefile.

I've confirmed that GNU make, BSD make, Solaris 10 make and
AIX 7.2 make include Makefile relative from the current
working directory.
---
 Completion/Unix/Command/_make | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/Completion/Unix/Command/_make b/Completion/Unix/Command/_make
index 890ad1c83..66b7e13b1 100644
--- a/Completion/Unix/Command/_make
+++ b/Completion/Unix/Command/_make
@@ -108,10 +108,6 @@ _make-parseMakefile () {
         f=${f%[\">]}
       fi
       f=$(_make-expandVars $f)
-      case $f in
-        (/*) ;;
-        (*) f=$dir/$f ;;
-      esac
 
       if [[ -r $f ]]
       then
-- 
2.15.0


             reply	other threads:[~2017-11-25 11:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-25 10:59 SATOH Fumiyasu [this message]
2018-03-24 13:31 ` Oliver Kiddle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wp2eobmf.wl-fumiyas@osstech.co.jp \
    --to=fumiyas@osstech.co.jp \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).