Only execute depends command if there are source files.

This commit is contained in:
Janet B. Anderson
2001-08-20 17:23:24 +00:00
parent c4a14a940d
commit def5fcf7c2
2 changed files with 4 additions and 0 deletions

View File

@@ -522,7 +522,9 @@ $(PACKAGE)_%.h:$(INSTALL_JAVA)/$(PACKAGE)/%.class
depends:: $(LIBSRCS) $(SRCS) $(COND_PROD_SRCS)
$(RM) DEPENDS
ifneq ($(strip $(LIBSRCS) $(SRCS) $(COND_PROD_SRCS)),)
$(DEPENDS_RULE)
endif
ifeq ($(HOST_ARCH),Borland)
%$(EXE): %.c

View File

@@ -76,7 +76,9 @@ endif
depends:: $(SRCS.c) $(SRCS.cc)
$(RM) DEPENDS
ifneq ($(strip $(SRCS.c) $(SRCS.cc)),)
$(DEPENDS_RULE)
endif
clean::
@echo "Cleaning"