Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: compctl for Makefile targets?

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:

  if [[ -r Makefile ]] then
    reply=(`sed -n "s/^\([0-9A-Za-z_/.-]*\):.*/\1/p" Makefile`)

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:

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