Fixed DEPENDS rule lines.

This commit is contained in:
Janet B. Anderson
1997-02-06 19:47:03 +00:00
parent 3ede2a2512
commit 1e4e78d6bc
2 changed files with 7 additions and 9 deletions

View File

@@ -111,6 +111,6 @@ LINK.cc = $(LD_CXX) $(CXXLDFLAGS)
CPPSNCFLAGS = $(VX_INCLUDES)
DEPENDS_RULE.c = -$(COMPILE.c) -M $(SRCS.c) > .DEPENDS
DEPENDS_RULE.cc = -$(COMPILE.cc) -M $(SRCS.cc) > .DEPENDS
DEPENDS_RULE.c = -$(COMPILE.c) -M $(SRCS.c) >> .DEPENDS
DEPENDS_RULE.cc = -$(COMPILE.cc) -M $(SRCS.cc) >> .DEPENDS

View File

@@ -296,13 +296,11 @@ buildInstall :: build $(TARGETS) $(INSTALL_LOCATION_BIN) \
depends:: $(LIBSRCS) $(SRCS)
$(RM) .DEPENDS
touch .DEPENDS
ifdef DEPENDS_RULE
$(DEPENDS_RULE)
else
@echo RULES.Host: You have no DEPENDS_RULE defined for $(ARCH_CLASS)
@echo (DEPENDS_RULE should be able to handle both C and C++ files,
@echo use a script if all else failes)
@exit
ifdef $(SRCS.c)
$(DEPENDS_RULE.c)
endif
ifdef $(SRCS.cc)
$(DEPENDS_RULE.cc)
endif