Hi,
On Mon, 8 Aug 2005, Junio C Hamano wrote:
> We would need something like this.
>
> [...]
>
> +$(patsubst git-%,%.o,$(PROG)): $(LIB_H)
A short
for i in git-*; do \
c=$(echo $i|sed "s/git-\(.*\)/\1.c/g")
if [ -e $c ]; then \
if ! grep cache\\.h $c; then \
echo $c does not depend on cache.h \
fi \
fi \
done
(actually tested) reveals that only get-tar-commit-id.c and stripspace.c
do not depend on cache.h or rev-cache.h. Thus, your patch is the most
elegant solution to my problem :-)
Ciao,
Dscho
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html