From 68b62dd4b3f4766e2bd3c5e6eb0ae298e2297912 Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Mon, 21 Dec 2009 19:45:12 +0000 Subject: [PATCH] Add rule to create depends file in O. dir. Simplify Makefile. --- src/db/Makefile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/db/Makefile b/src/db/Makefile index 7690447f5..0ebdffdb6 100644 --- a/src/db/Makefile +++ b/src/db/Makefile @@ -46,9 +46,7 @@ DBDINC += menuScan DBDINC += menuYesNo DBDINC += menuSimm -INC += dbCommon.h - -DBD+= dbCommon.dbd +DBDINC += dbCommon DBD+= menuGlobal.dbd LIB_SRCS += dbLock.c @@ -89,11 +87,11 @@ endif include $(TOP)/configure/RULES +dbCommon.h$(DEP): ../dbCommonRecord.dbd ../dbCommon.dbd + @$(RM) $@ + @-$(MKMF) -m $@ .. $(COMMON_DIR)/dbCommon.h $< + $(COMMON_DIR)/dbCommon.h: ../dbCommonRecord.dbd ../dbCommon.dbd - @$(RM) $@$(DEP) - @-$(MKMF) -m $@$(DEP) .. $@ $< $(RM) $@ $(DBTORECORDTYPEH) -I .. $< $@ -inc: $(INSTALL_DBD)/dbCommon.dbd -