Package: make
Version: 3.81-8
Severity: normal
Hi,
I've run into an odd behaviour with pattern rules. A pattern rule
without a body is simply ignored:
m...@frosties:~/t% cat Makefile
%-foo: bla-%-foo
%-baz: bla-%-foo
$(info $@)
bla-%-foo:
$(info $@)
touch $@
m...@frosties:~/t% make blub-foo
make: *** No rule to make target `blub-foo'. Stop.
m...@frosties:~/t% make blub-baz
bla-blub-foo
touch bla-blub-foo
blub-baz
rm bla-blub-foo
Any idea why that is so?
MfG
Goswin
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (666, 'unstable'), (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-debian-xen-1 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages make depends on:
ii libc6 2.11.2-5 Embedded GNU C Library: Shared lib
make recommends no packages.
Versions of packages make suggests:
ii make-doc 3.81-5 Documentation for the GNU version
-- no debconf information
%-foo: bla-%-foo
%-baz: bla-%-foo
$(info $@)
bla-%-foo:
$(info $@)
touch $@