From: Junio C Hamano Date: Mon, 08 Aug 2005 22:42:36 GMT Subject: Re: A simple script to do the reverse of git-push Message-ID: <7vslxk125f.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Johannes Schindelin writes: > BTW, if you are lazy, like me, you just pull from Junio once in a while > and do a "make test". Turns out there is a missing dependency though: > > peek-remote.o: cache.h > > which in my case lead to a git-peek-remote program which was unable to > peek any ref. You are right. Thanks for noticing. $ (make clean ; make ) >/dev/null 2>/dev/null $ touch cache.h $ make 2>&1 | grep peek-remote cc -g -O2 -Wall '-DSHA1_HEADER=' -o git-peek-remote peek-remote.o libgit.a -lz -lcrypto I think recent "depend on object files" Makefile patch broke some things. We would need something like this. --- # - pu: ls-remote: drop storing operation and add documentation. # + (working tree) diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -172,6 +172,7 @@ init-db.o: init-db.c $(CC) -c $(CFLAGS) -DDEFAULT_GIT_TEMPLATE_DIR='"$(template_dir)"' $*.c $(LIB_OBJS): $(LIB_H) +$(patsubst git-%,%.o,$(PROG)): $(LIB_H) $(DIFF_OBJS): diffcore.h $(LIB_FILE): $(LIB_OBJS)