add rules to automatically build .h files from .idl files if they are newer,

and add way of exporting IDL files with IDLSRCS
This commit is contained in:
alecf%netscape.com 1999-01-22 01:28:13 +00:00
parent 8f9176fb66
commit ace3cdd40e

View File

@ -473,6 +473,9 @@ endif #STRICT_CPLUSPLUS_SUFFIX
%: %.sh
rm -f $@; cp $< $@; chmod +x $@
%.h: %.idl
$(IDL_COMPILE) -h -w -I $(DIST)/idl $<
ifdef DIRS
$(DIRS)::
@if test -d $@; then \
@ -737,6 +740,18 @@ endif
################################################################################
ifneq ($(IDLSRCS),)
$(XPDIST)/idl$(INCL_SUBDIR)::
@if test ! -d $@; then echo Creating $@; rm -rf $@; $(NSINSTALL) -D $@; else true; fi
export:: $(IDLSRCS) $(XPDIST)/idl$(INCL_SUBDIR)
$(INSTALL) -m 444 $^
endif
##############################################################################
ifdef USE_AUTOCONF
ALL_TRASH := $(filter-out $(OBJDIR), $(ALL_TRASH))
endif