From 1fb5b28ccef8adc0fa0d3732a25080b7307a8b12 Mon Sep 17 00:00:00 2001 From: "mccabe%netscape.com" Date: Sun, 9 May 1999 06:26:05 +0000 Subject: [PATCH] A slightly better test for overriding .h files with .idl files. If foo.h is in the $(EXPORTS) list (rather than just in the same dir) warn that the .h we're generating from the .idl overrides the old .idl. --- config/rules.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/rules.mk b/config/rules.mk index 3b1a23daf1e4..0a837d422b0a 100644 --- a/config/rules.mk +++ b/config/rules.mk @@ -911,7 +911,7 @@ $(XPIDL_GEN_DIR): $(XPIDL_GEN_DIR)/%.h: %.idl $(IDL_COMPILE) $(XPIDL_GEN_DIR) $(XPIDL_COMPILE) -m header -w -I $(XPDIST)/idl -o $(XPIDL_GEN_DIR)/$* $< - @if test -e $(srcdir)/$*.h; \ + @if test -n "$(findstring $*.h, $(EXPORTS))"; \ then echo "*** WARNING: file $*.h generated from $*.idl overrides $(srcdir)/$*.h"; fi export:: $(patsubst %.idl,$(XPIDL_GEN_DIR)/%.h, $(XPIDLSRCS)) $(XPDIST)/include