summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2001-01-19 22:47:44 +0100
committerRyan Bloom <rbb@apache.org>2001-01-19 22:47:44 +0100
commit1a9e94d0b065976bc41efb8f55b2e61e6dff56c1 (patch)
tree31cb8e4b696918defb9ea8806eb3006046cbf7d2 /build
parentRemove the direct links to the Apache web site from the welcome pages (diff)
downloadapache2-1a9e94d0b065976bc41efb8f55b2e61e6dff56c1.tar.xz
apache2-1a9e94d0b065976bc41efb8f55b2e61e6dff56c1.zip
Fix make depend for the whole server
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87743 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build')
-rw-r--r--build/rules.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/build/rules.mk b/build/rules.mk
index 9c3b4e1d33..561cf5873b 100644
--- a/build/rules.mk
+++ b/build/rules.mk
@@ -176,8 +176,10 @@ install-p: $(targets) $(install_targets)
distclean-p depend-p clean-p:
depend: depend-recursive
- gcc -MM $(INCLUDES) $(EXTRA_INCLUDES) $(DEFS) $(CPPFLAGS) $(srcdir)/*.c | sed 's/\.o:/.lo:/' > $(builddir)/.deps || true
-# test "`echo *.c`" = '*.c' || perl $(top_srcdir)/build/mkdep.perl $(CPP) $(INCLUDES) $(EXTRA_INCLUDES) *.c > .deps
+ if test "`find . -name "*.c" -maxdepth 1 -print`" != ""; 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
clean: clean-recursive clean-x