[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: let me rephrase that -- question about empty commands
From: |
Noel Yap |
Subject: |
Re: let me rephrase that -- question about empty commands |
Date: |
Tue, 16 Dec 2003 10:57:59 -0500 |
"Paul D. Smith" wrote:
> ny> Anyway, the behaviour I had seen was when I had somithing like the
> ny> following rules:
>
> ny> .SUFFIXES: .pm _wrap.cc
> ny> $(build.DIR)/common/%.pm: $(build.DIR)/common/%_wrap.cc
>
> First note that all your uses of .SUFFIXES here are useless: .SUFFIXES
> is _ONLY_ used for suffix rules. These are pattern rules, so you don't
> need to set .SUFFIXES, and the value of .SUFFIXES isn't used.
Hmmm, I could've sworn I had seen behaviour changes due to missing .SUFFIXES:.
I'll try removing them to see what happens.
> ny> .SUFFIXES: .pm _wrap.cc
> ny> $(build.DIR)/common/%.pm: $(build.DIR)/common/%_wrap.cc
> ny> @:
>
> ny> Is this expected behaviour?
>
> Yes, this is correct behavior. This is a pattern rule, not an explicit
> rule like the example in the whitepaper. Pattern rules work
> differently.
>
> See the section "Canceling Implicit Rules" in the GNU make manual.
OK.
Thanks,
Noel
--
NOTICE: If received in error, please destroy and notify sender. Sender does
not waive confidentiality or privilege, and use is prohibited.