[DVDnav-discuss] parallel make problem
Dan Nicholson
dbn.lists at gmail.com
Sat Aug 30 19:19:44 CEST 2008
On Sat, Aug 30, 2008 at 10:03 AM, Dominik 'Rathann' Mierzejewski
<dominik at greysector.net> wrote:
> On Saturday, 30 August 2008 at 17:30, Dan Nicholson wrote:
>> On Sat, Aug 30, 2008 at 7:05 AM, Dominik 'Rathann' Mierzejewski
>> <dominik at greysector.net> wrote:
>> > I'm experiencing a problem with make -j2:
> [...]
>> > But I'd rather have a proper fix instead of workarounds.
>> > Ideas?
>>
>> You really don't want to have a target dependent on a directory
>> because make will always think the target is out of date.
>
> On second thought, why? If it's created by that rule, it should behave
> just like any other file.
>
>> That prevents doing the right thing:
>>
>> $(OBJS) $(DVDREAD_OBJS) $(SHOBJS) $(DVDREAD_SHOBJS): $(.OBJDIR)
>
> Actually this seems to work fine.
Run `make' again. Because the timestamp of the directory doesn't get
updated, make will always think the directory is out of date. This
leads to everything always been rebuilt. If that's something you can
deal with, then this is the way to go.
--
Dan
More information about the DVDnav-discuss
mailing list