On Saturday, 30 August 2008 at 17:30, Dan Nicholson wrote:
> On Sat, Aug 30, 2008 at 7:05 AM, Dominik 'Rathann' Mierzejewski
> <[EMAIL PROTECTED]> 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.

How about this patch:
Index: Makefile
===================================================================
--- Makefile    (revision 1122)
+++ Makefile    (working copy)
@@ -78,6 +78,8 @@
 $(.OBJDIR):
        mkdir $(.OBJDIR)
 
+$(OBJS) $(DVDREAD_OBJS) $(SHOBJS) $(DVDREAD_SHOBJS): $(.OBJDIR)
+
 ${DVDREAD_LIB}: version.h $(.OBJDIR) $(DVDREAD_OBJS) $(BUILDDEPS)
        cd $(.OBJDIR) && $(AR) rc $@ $(DVDREAD_OBJS)
        cd $(.OBJDIR) && $(RANLIB) $@

Regards,
R.

-- 
Fedora http://fedoraproject.org/wiki/User:Rathann
Livna http://rpm.livna.org | MPlayer http://mplayerhq.hu
"Faith manages."
        -- Delenn to Lennier in Babylon 5:"Confessions and Lamentations"
_______________________________________________
DVDnav-discuss mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/dvdnav-discuss

Reply via email to