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