From: Petr Baudis Date: Sun, 23 Oct 2005 22:25:54 GMT Subject: Re: User-relative paths Message-ID: <20051023222554.GT30889@pasky.or.cz> In-Reply-To: <7voe5gypvi.fsf@assigned-by-dhcp.cox.net> Dear diary, on Sun, Oct 23, 2005 at 09:50:25PM CEST, I got a letter where Junio C Hamano told me that... > Petr Baudis writes: > > >> diff --git a/Makefile b/Makefile > >> index 903c57c..87188ea 100644 > >> --- a/Makefile > >> +++ b/Makefile > >> @@ -359,6 +362,9 @@ git-cherry-pick: git-revert > >> %.o: %.S > >> $(CC) -o $*.o -c $(ALL_CFLAGS) $< > >> > >> +$(SERVERSIDE_PROGRAMS) : git-%$X : %.o srvside-ssh.o $(LIB_FILE) > >> + $(CC) $(ALL_CFLAGS) -o $@ $(filter %o,$^) $(LIBS) > >> + > >> git-%$X: %.o $(LIB_FILE) > >> $(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) $(LIBS) > >> > > > > Why are you adding own compilation command, and why is it inconsistent > > with the git-%$X's one? > > Although I'd prefer the simplicity of putting srvside-ssh.o in > LIB_OBJS, this is arguably defensible; it avoids relinking of > everything else merely because srvside-ssh.c is changed. I'm talking only about the compilation command, not about the dependency line. -- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ VI has two modes: the one in which it beeps and the one in which it doesn't.