From: Greg Stein Date: Fri, 19 Jan 2001 22:01:50 +0000 (+0000) Subject: maxdepth isn't portable, so just list the .c files (if any) X-Git-Tag: APACHE_2_0_BETA_CANDIDATE_1~160 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd2f5faafa15133b1436e93a8f0052eda206fcf9;p=thirdparty%2Fapache%2Fhttpd.git maxdepth isn't portable, so just list the .c files (if any) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87744 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/build/rules.mk b/build/rules.mk index 561cf5873b3..e42bf0c96e3 100644 --- a/build/rules.mk +++ b/build/rules.mk @@ -176,7 +176,7 @@ install-p: $(targets) $(install_targets) distclean-p depend-p clean-p: depend: depend-recursive - if test "`find . -name "*.c" -maxdepth 1 -print`" != ""; then \ + if test -n "`ls *.c 2> /dev/null`"; then \ gcc -MM $(INCLUDES) $(EXTRA_INCLUDES) $(DEFS) $(CPPFLAGS) $(srcdir)/*.c | sed 's/\.o:/.lo:/' > $(builddir)/.deps || true; \ fi # test "`echo *.c`" = '*.c' || perl $(top_srcdir)/build/mkdep.perl $(CPP) $(INCLUDES) $(EXTRA_INCLUDES) *.c > .deps