From: "Thomas Köhler" <jean-luc@picard.franken.de>
To: "Raju K. V." <rajukv@wipinfo.soft.net>
Cc: zsh-users@sunsite.auc.dk
Subject: Re: completions for make targets?
Date: Mon, 21 Jun 1999 09:06:51 +0200 [thread overview]
Message-ID: <19990621090651.B1131@picard.franken.de> (raw)
In-Reply-To: <Pine.SV4.3.93.990621101124.5328A-100000@tagore>; from Raju K. V. on Mon, Jun 21, 1999 at 10:16:38AM +0530
Raju K. V. <rajukv@wipinfo.soft.net> wrote:
>
> Hi all,
>
> I am a zsh newbie still struggling to understand the power of compctl. I
> have one requirement. How can I use compctl to complate make targets? I
> can illustrate my requirements:
> suppose I have 'Makefile' in my current directory with targets
> xx:
> yy:
> zz:
> clean:
> clobber:
> now I want to program compctl in such a way that $make <TAB> will list all
> the targets for make.
>
> Any help will be welcome.
Well, there is a tool to convert tcsh complete commands to zsh compctl
statements. Using that, I got this solution (sorry for the *long* line):
compctl -s '`cat -s GNUmakefile Makefile makefile |& sed -n -e "/No such file/d" -e "/^[^ #].*:/s/:.*//p"`' -x 'c[-1,-f]' -f - 'n[-1,=]' -f -- make
> Thanks and regards,
> Raju
HTH,
Thomas
> p.s.: Since I am not subscribed to the list, please CC me in your replies.
No problem. :-)
--
Thomas Köhler Email: jean-luc@picard.franken.de
<>< WWW: http://home.pages.de/~jeanluc/
IRC: jeanluc
LCARS --- Linux for Computers on All Real Starships
next prev parent reply other threads:[~1999-06-21 7:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-21 4:46 Raju K. V.
1999-06-21 7:06 ` Thomas Köhler [this message]
1999-06-21 9:17 ` Falk Hueffner
1999-06-21 12:05 ` Stefan Monnier
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=19990621090651.B1131@picard.franken.de \
--to=jean-luc@picard.franken.de \
--cc=rajukv@wipinfo.soft.net \
--cc=zsh-users@sunsite.auc.dk \
/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).