# [PATCH] Makefile: ssh-pull.o depends on ssh-fetch.c

3 messages from 2006-07-28 to 2006-07-28. Participants: Johannes Schindelin, Junio C Hamano.
Thread: https://gitlist.dev/t/5029

## Johannes Schindelin, 2006-07-28 09:17

Subject: [PATCH] Makefile: ssh-pull.o depends on ssh-fetch.c
Message-ID: <Pine.LNX.4.63.0607281117240.29667@wbgn013.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0607281117240.29667%40wbgn013.biozentrum.uni-wuerzburg.de

```

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
 Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 636679f..e8037ad 100644
--- a/Makefile
+++ b/Makefile
@@ -661,6 +661,7 @@ git-%$X: %.o $(GITLIBS)
 	$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
 		$(LIB_FILE) $(SIMPLE_LIB)
 
+ssh-pull.o: ssh-fetch.c
 git-local-fetch$X: fetch.o
 git-ssh-fetch$X: rsh.o fetch.o
 git-ssh-upload$X: rsh.o
-- 
1.4.2.rc2.g51ee8-dirty

```

## Junio C Hamano, 2006-07-28 18:14

Subject: Re: [PATCH] Makefile: ssh-pull.o depends on ssh-fetch.c
Message-ID: <7vslkllhqo.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vslkllhqo.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <Pine.LNX.4.63.0607281117240.29667@wbgn013.biozentrum.uni-wuerzburg.de>

```
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:

> Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
> ---
>  Makefile |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 636679f..e8037ad 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -661,6 +661,7 @@ git-%$X: %.o $(GITLIBS)
>  	$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
>  		$(LIB_FILE) $(SIMPLE_LIB)
>  
> +ssh-pull.o: ssh-fetch.c
>  git-local-fetch$X: fetch.o
>  git-ssh-fetch$X: rsh.o fetch.o
>  git-ssh-upload$X: rsh.o

My personal preference would be to deprecate these commit
walkers ;-) but in any case we would also need to make
ssh-push.o depend on ssh-upload.c for the same logic.

```

## Johannes Schindelin, 2006-07-28 18:55

Subject: Re: [PATCH] Makefile: ssh-pull.o depends on ssh-fetch.c
Message-ID: <Pine.LNX.4.63.0607282054190.29667@wbgn013.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0607282054190.29667%40wbgn013.biozentrum.uni-wuerzburg.de
In-Reply-To: <7vslkllhqo.fsf@assigned-by-dhcp.cox.net>

```
Hi,

On Fri, 28 Jul 2006, Junio C Hamano wrote:

> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 
> > +ssh-pull.o: ssh-fetch.c
> 
> My personal preference would be to deprecate these commit walkers ;-) 
> but in any case we would also need to make ssh-push.o depend on 
> ssh-upload.c for the same logic.

Probably. But this was a _necessary_ fix: git stopped compiling here (yes, 
I could have done "make clean && make", but that takes all the fun out of 
it...).

Ciao,
Dscho

```
