[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: implicit rules
From: |
Paul D. Smith |
Subject: |
Re: implicit rules |
Date: |
Mon, 26 Apr 2004 16:03:01 -0400 |
%% Boris Kolpackov <address@hidden> writes:
bk> Paul D. Smith <address@hidden> writes:
>> %% Boris Kolpackov <address@hidden> writes:
>>
bk> /%.mk: $$(notdir\ /%.m)
>>
>> This will only work if you patch make to re-expand the prerequisites a
>> second time when it's matching pattern rules. This is not normal make
>> behavior.
bk> But he asked if I had any patches to help him... ;-)
You can also do it with eval, without requiring a patch, if you can
somehow find a list of the subdirectories you want to handle.
For example, if you have a list of the target makefiles you want to
build:
MKFILES = foo/bar.mk bar/baz.mk baz/boz.mk
then you can get a list of directories with $(dir ) etc., then you can
write a loop with eval to declare the proper implicit rules (or even use
explicit ones if you like).
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
- implicit rules, Noel Yap, 2004/04/26
- Re: implicit rules, Boris Kolpackov, 2004/04/26
- Re: implicit rules, Noel Yap, 2004/04/26
- Re: implicit rules, Boris Kolpackov, 2004/04/26
- Re: implicit rules, Paul D. Smith, 2004/04/26
- Re: implicit rules, Boris Kolpackov, 2004/04/26
- Re: implicit rules,
Paul D. Smith <=
- Re: implicit rules, Boris Kolpackov, 2004/04/26
- Re: implicit rules, Noel Yap, 2004/04/26
- Re: implicit rules, Noel Yap, 2004/04/26