From: Jonathan Nieder Date: Mon, 25 Aug 2014 21:27:06 GMT Subject: Re: [PATCH 2/3] Makefile: use `find` to determine static header dependencies Message-ID: <20140825212705.GU20185@google.com> In-Reply-To: Junio C Hamano wrote: > Jonathan Nieder writes: >> Tiny nit: I might use >> >> $(shell $(FIND) * \ >> -name . -o >> -name '.*' -prune -o \ >> -name t -prune -o \ >> -name Documentation -prune -o \ >> -name '*.h' -print) >> >> or >> >> $(shell $(FIND) * \ >> -name '.?*' -prune -o \ >> -name t -prune -o \ >> -name Documentation -prune -o \ >> -name '*.h' -print) >> >> to avoid spending time looking in other dot-directories like .svn, >> .hg, or .snapshot. > > Wouldn't it be sufficient to start digging not from "*" but from > "??*"? Gah, the * was supposed to be . in my examples (though it doesn't hurt). > find ??* \( -name Documentation -o -name .\?\* \) -prune -o -name \*.h Heh. Yeah, that would work. ;-)