Summary: | [bash-completion] cannot expand "make ./sapi/cgi/php" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Xuefer <Xuefer> |
Component: | Current packages | Assignee: | Gentoo Shell Tools project <shell-tools> |
Status: | RESOLVED UPSTREAM | ||
Severity: | minor | CC: | ka0ttic |
Priority: | High | ||
Version: | 2006.0 | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Xuefer
2006-03-10 03:13:44 UTC
Could you attach a sample Makefile where this applies? Usually one types: # make target another_target And that is what the bash completion there will complete on. Is there a Makefile target of the ./abe/def form in your Makefile? Or are you trying to do something else? If this is still a problem for you, feel free to re-open it after you've answered the questions in comment #1. sorry for the delay as i was not reading my mailbox for a long time. and sorry for not given a specified example at the first time, thinking it could be reproducable with the description i abstracted. Makefile of php is using variable SAPI_CLI_PATH = sapi/cli/php $(SAPI_CLI_PATH): $(PHP_GLOBAL_OBJS) $(PHP_CLI_OBJS) $(BUILD_CLI) neither "make sapi<TAB>" nor make "make ./sapi<TAB>" works. so i think it would be nice if it recognize "./" (or any absolute/relative file path) as make target, unless u can make it recognize variable in Makefile Hmm, no I don't like the idea of just matching any ./* as a target. I'd much rather have a solution that properly parses Makefile syntax. It looks like the make -p command spits out the info we need and expands variables and such for us. I'll see if I can wrangle up a patch for this. Thanks for the report. As we approach the fourth year of this bugs existence, I'm going to suggest that you take this upstream if it still bothers you as it won't be fixed at the distro level. |