From: Justin Erenkrantz Date: Thu, 18 Apr 2002 17:51:54 +0000 (+0000) Subject: Replace this bogus check with something that actually works. I have no X-Git-Tag: 2.0.36~154 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=920e7befe4a73469c9e1d193869e08298506218b;p=thirdparty%2Fapache%2Fhttpd.git Replace this bogus check with something that actually works. I have no idea what this line is attempting to do, but it doesn't work in the top-level Makefile - causing an error. Therefore, take the line we use in APR to check if a file exists. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94702 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/build/rules.mk.in b/build/rules.mk.in index bd427a6fedc..f0fc3b9bb9b 100644 --- a/build/rules.mk.in +++ b/build/rules.mk.in @@ -178,7 +178,7 @@ local-all: $(TARGETS) local-shared-build: $(SHARED_TARGETS) local-depend: x-local-depend - if test "`echo $(srcdir)/*.c`" != "$(srcdir)'/*.c'"; then \ + if test -n "`ls $(srcdir)/*.c 2> /dev/null`"; then \ $(CC) -MM $(ALL_CPPFLAGS) $(ALL_INCLUDES) $(srcdir)/*.c | sed 's/\.o:/.lo:/' > $(builddir)/.deps || true; \ fi