mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-11-25 18:40:07 +08:00
Use correct makefile for target completion
This commit is contained in:
1 parent
244cbfc832
commit
3511fb04db
1 file changed
+1
-1
+1
-1
@@ -162,7 +162,7 @@ _cmake_targets() {
|
||||
then
|
||||
# `make help` doesn't work for Makefiles in general, but for CMake generated Makefiles it does.
|
||||
i=1
|
||||
for target in $(make help | \grep -e "\.\.\." | sed "s/\.\.\. //" | sed "s/ (the default.*//") ; do
|
||||
for target in $(make -f $1/Makefile help | \grep -e "\.\.\." | sed "s/\.\.\. //" | sed "s/ (the default.*//") ; do
|
||||
targets[$i]=$target
|
||||
(( i = $i + 1 ))
|
||||
done
|
||||
|
||||
Reference in new issue
Block a user