]> granicus.if.org Git - apache/commitdiff
Replace this bogus check with something that actually works. I have no
authorJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 18 Apr 2002 17:51:54 +0000 (17:51 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 18 Apr 2002 17:51:54 +0000 (17:51 +0000)
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

build/rules.mk.in

index bd427a6fedc14f0c1ad7d866b4950d6a12099866..f0fc3b9bb9b18abea69da62f623e3f0937760a57 100644 (file)
@@ -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