mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
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:
parent
8f9176fb66
commit
ace3cdd40e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user