Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: compctl for Makefile targets?
- X-seq: zsh-users 899
- From: Vincent Lefevre <Vincent.Lefevre@xxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: compctl for Makefile targets?
- Date: Fri, 13 Jun 1997 17:36:07 +0200
- In-reply-to: <199706131501.LAA04129@xxxxxxxxxxxxxxxxxx>; from Hank Hughes on Fri, Jun 13, 1997 at 11:01:36AM -0400
- References: <199706131501.LAA04129@xxxxxxxxxxxxxxxxxx>
On Fri, Jun 13, 1997 at 11:01:36AM -0400, Hank Hughes wrote:
> I noticed an example in with some documentation somewhere
> but it seemed incomplete so.... has anyone made a compctl
> for Makefile targets. I'm staring at a lot of software
> installs, and rather than rewrite the wheel, I was wondering
> if "anyone out there" had one.
Here's mine:
replymake()
{
if [[ -r Makefile ]] then
reply=(`sed -n "s/^\([0-9A-Za-z_/.-]*\):.*/\1/p" Makefile`)
else
reply=()
fi
}
compctl -K replymake -g '*.c(:r)' -x 'c[-1,-f][-1,-o][-1,-W]' -f - 'c[-1,-I][-1,-C],s[-I]' -g '*(/)' -- make
Of course, it can still be improved...
You can find other compctl in:
http://www.ens-lyon.fr/~vlefevre/acorn/riscbsd/etc.zshrc
Comments are welcome...
--
Vincent Lefevre, vlefevre@xxxxxxxxxxx | Acorn Risc PC, StrongARM @ 202MHz
http://www.ens-lyon.fr/~vlefevre | 20+1MB RAM, Eagle M2, TV + Teletext
PhD in Computer Science, 1st year | Apple CD-300, SyQuest 270MB (SCSI)
-----------------------------------------------------------------------------
Messages sorted by:
Reverse Date,
Date,
Thread,
Author