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.
This commit is contained in:
mccabe%netscape.com 1999-05-09 06:26:05 +00:00
parent a7c2b4163f
commit 1fb5b28cce

View File

@ -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