Followup to fix build bustage for bug 380970, patch by Alex Vincent<ajvincent@gmail.com>, r=sayrer, sr=bsmedberg

This commit is contained in:
bzbarsky@mit.edu 2007-06-10 15:14:53 -07:00
parent 58a7060568
commit a3cf44e135

View File

@ -1714,6 +1714,42 @@ ifndef NO_INSTALL
endif
endif
################################################################################
# Copy each element of EXTRA_JS_MODULES to $(FINAL_TARGET)/modules
ifdef EXTRA_JS_MODULES
libs:: $(EXTRA_JS_MODULES)
ifndef NO_DIST_INSTALL
$(INSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)/modules
endif
install:: $(EXTRA_JS_MODULES)
ifndef NO_INSTALL
$(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(mozappdir)/modules
endif
endif
ifdef EXTRA_PP_JS_MODULES
libs:: $(EXTRA_PP_JS_MODULES)
ifndef NO_DIST_INSTALL
$(EXIT_ON_ERROR) \
for i in $^; do \
dest=$(FINAL_TARGET)/modules/`basename $$i`; \
$(RM) -f $$dest; \
$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) $(XULPPFLAGS) $$i > $$dest; \
done
endif
install:: $(EXTRA_PP_JS_MODULES)
ifndef NO_INSTALL
$(EXIT_ON_ERROR) \
for i in $^; do \
dest=$(DESTDIR)$(mozappdir)/modules/`basename $$i`; \
$(RM) -f $$dest; \
$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) $(XULPPFLAGS) $$i > $$dest; \
done
endif
endif
################################################################################
# SDK