From:
[email protected]
Package: bash
Version: 3.0-5
Severity: wishlist
I made a makefile with some implicit rules, but I can't
tab-complete filenames to match it. Here is the makefile (4
lines long):
%.html : %.txt
pdbtxt2html $< $@
%.txt : %.pdb
txt2pdbdoc -d $< $@
So for instance, if I have a file called foo.pdb, and I type:
make foo.html
I will see the following results:
txt2pdbdoc -d foo.pdb foo.txt
pdbtxt2html foo.txt foo.html
rm foo.txt
I would like to be able to do:
make fo<tab>
and see as the possible completions (assuming no other files
starting with 'fo'):
foo.txt foo.html
Built-in implicit rule completion would be nice as well. For
instance, having a file called foo.c laying around, I do:
make fo<tab>
and see the following possible completions (again, assuming no
other files starting with 'fo' exist):
foo foo.o
While I am wishing, also completing standard makefile variables
would be nice too, like so:
make foo CFL<tab>
would expand to CFLAGS= and then possibly show some of the
compiler options by using the cc completions. Similarly,
make foo LDF<tab>
would expand to LDFLAGS= and possibly show some libraries in the
library path.
thanks,
Brian Minton
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-1-686-smp
Locale: LANG=C, LC_CTYPE=C
Versions of packages bash depends on:
ii base-files 3.1 Debian base system miscellaneous f ii libc6 2.3.2.ds1-16 GNU C Library: Shared libraries an ii libncurses5 5.4-4 Shared libraries for terminal hand ii passwd 1:4.0.3-30 Change and administer password and
-- no debconf information
--
To UNSUBSCRIBE, email to
[email protected]
with a subject of "unsubscribe". Trouble? Contact
[email protected]
--- SoupGate-Win32 v1.05
* Origin: you cannot sedate... all the things you hate (1:229/2)