From 2f81d1f71c01a581ee72db27c123b333d433c419 Mon Sep 17 00:00:00 2001 From: "cls%seawood.org" Date: Wed, 25 Oct 2000 23:06:55 +0000 Subject: [PATCH] OOOPS! Make sure that we touch the .done even if the directory already exists. This will fix the constant rebuild problem --- config/rules.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/rules.mk b/config/rules.mk index 200b95283b4f..8685aabb1a49 100644 --- a/config/rules.mk +++ b/config/rules.mk @@ -1096,7 +1096,8 @@ export:: $(XPIDLSRCS) $(DIST)/idl # generate .h files from into $(XPIDL_GEN_DIR), then export to $(PUBLIC); # warn against overriding existing .h file. $(XPIDL_GEN_DIR)/.done: - @if test ! -d $(XPIDL_GEN_DIR); then echo Creating $(XPIDL_GEN_DIR)/.done; rm -rf $(XPIDL_GEN_DIR); mkdir $(XPIDL_GEN_DIR); touch $@ else true; fi + @if test ! -d $(XPIDL_GEN_DIR); then echo Creating $(XPIDL_GEN_DIR)/.done; rm -rf $(XPIDL_GEN_DIR); mkdir $(XPIDL_GEN_DIR); fi + @touch $@ # don't depend on $(XPIDL_GEN_DIR), because the modification date changes # with any addition to the directory, regenerating all .h files -> everything.