From f2ea90ba00f3ed4e8314378625403ca772aa7930 Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Fri, 22 Jan 1999 01:28:13 +0000 Subject: [PATCH] add rules to automatically build .h files from .idl files if they are newer, and add way of exporting IDL files with IDLSRCS git-svn-id: svn://10.0.0.236/trunk@18239 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/config/rules.mk | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/mozilla/config/rules.mk b/mozilla/config/rules.mk index f0d5b8294e5..bcea0698469 100644 --- a/mozilla/config/rules.mk +++ b/mozilla/config/rules.mk @@ -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