make auto complete? Programmable Completion?
by Johannes33 from LinuxQuestions.org on (#58FD8)
Hi,
Lets say that I have a directory with the file:
testfile.c.
In the same directory I have a Makefile:
Code:CFLAGS=-Wall -g -W -pedantic -ansi -std=c99
CC=gccI call make with
>make te<tab>
but I get no auto completion.
If I add "testfile:" to the Makefile:
Code:CFLAGS=-Wall -g -W -pedantic -ansi -std=c99
CC=gcc
testfile:And I call make with:
>make te<tab>
it will generate
>make testfile
so auto complete works.
But how do I get it to work without "testfile:" in the Makefile?


Lets say that I have a directory with the file:
testfile.c.
In the same directory I have a Makefile:
Code:CFLAGS=-Wall -g -W -pedantic -ansi -std=c99
CC=gccI call make with
>make te<tab>
but I get no auto completion.
If I add "testfile:" to the Makefile:
Code:CFLAGS=-Wall -g -W -pedantic -ansi -std=c99
CC=gcc
testfile:And I call make with:
>make te<tab>
it will generate
>make testfile
so auto complete works.
But how do I get it to work without "testfile:" in the Makefile?