From: Junio C Hamano Date: Sat, 28 Nov 2009 18:05:06 GMT Subject: Re: [PATCH 1/4] Makefile: fix http-push.o dependencies Message-ID: <7vk4xah6el.fsf@alter.siamese.dyndns.org> In-Reply-To: <20091128113115.GB10059@progeny.tock> Jonathan Nieder writes: > Since it is not in LIB_OBJS, http-push.o needs an explicit > $(GIT_H) dependency. I think you meant $(LIB_H). $ make $ touch cache.h $ make http-push.o does rebuild it with the current Makefile without this patch, because it has this seemingly unrelated line (worse yet, this gives even more than what are listed in LIB_H). $(patsubst git-%$X,%.o,$(PROGRAMS)) git.o: $(LIB_H) $(wildcard */*.h) Puzzlingly messy.