From: Sascha Schumann Date: Sat, 20 Jan 2001 08:23:53 +0000 (+0000) Subject: No need to run an external program for checking for the existence of X-Git-Tag: APACHE_2_0_BETA_CANDIDATE_1~150 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a029ca7d80f16157d98f39d9b7ce5d0a862dba4b;p=apache No need to run an external program for checking for the existence of C source files. echo as a built-in function does the same job quicker. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87757 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/build/rules.mk b/build/rules.mk index 71d10986b1..2fe3da5d3d 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 -n "`ls $(srcdir)/*.c 2> /dev/null`"; then \ + if test "`echo $(srcdir)/*.c`" != "$(srcdir)'/*.c'"; 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