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

PATCH: Re: make target completion



Andrej Borsenkow wrote:

> (in /tools/src/zsh):
> 
> bor@itsrm2% sudo gmake i<TAB>
> bor@itsrm2% sudo gmake install
> Completing make target
> install         install-strip   install.fns   
> 
> but
> 
> bor@itsrm2% grep '^install' Makefile  
> install-strip:
> install: install.bin install.modules install.man install.fns
> install.bin uninstall.bin:
> install.modules uninstall.modules:
> install.man uninstall.man:
> install.fns:
> install.info uninstall.info:
> install.html uninstall.html:
> 
> I actually tried to complete install.modules ...

Oops.


Bye
 Sven

Index: Completion/User/_make
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/User/_make,v
retrieving revision 1.2
diff -u -r1.2 _make
--- Completion/User/_make	2000/04/01 20:43:43	1.2
+++ Completion/User/_make	2000/04/07 09:58:32
@@ -20,7 +20,7 @@
 
   if [[ -n "$file" ]] && _wanted targets; then
     tmp=(
-          $(awk '/^[a-zA-Z0-9][^\/ \t]+:/ {print $1}
+          $(awk '/^[a-zA-Z0-9][^\/\t]+:/ {print $1}
  	      /^\.include  *<bsd\.port\.(subdir\.|pre\.)?mk>/ || /^\.include  *".*mk\/bsd\.pkg\.(subdir\.)?mk"/ {
  	        print "fetch fetch-list extract patch configure build install reinstall deinstall package describe checkpatch checksum makesum" }' \
  	     FS=: $file)

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author