Bug 687805 - Allow DIST_FILES, DIST_CHROME_FILES and PREF_JS_EXPORTS to be in objdir. r=khuey

This commit is contained in:
Mike Hommey 2011-09-21 18:06:14 +02:00
Родитель 3e17a7bded
Коммит 07d563ff29
2 изменённых файлов: 18 добавлений и 14 удалений

Просмотреть файл

@ -1407,9 +1407,10 @@ ifndef NO_DIST_INSTALL
$(FINAL_TARGET)/$(PREF_DIR):
$(NSINSTALL) -D $@
libs:: $(FINAL_TARGET)/$(PREF_DIR) $(PREF_JS_EXPORTS)
libs:: $(FINAL_TARGET)/$(PREF_DIR)
libs:: $(PREF_JS_EXPORTS)
$(EXIT_ON_ERROR) \
for i in $(PREF_JS_EXPORTS); do \
for i in $^; do \
dest=$(FINAL_TARGET)/$(PREF_DIR)/`basename $$i`; \
$(RM) -f $$dest; \
$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(PREF_PPFLAGS) $(DEFINES) $(ACDEFINES) $(XULPPFLAGS) $$i > $$dest; \
@ -1652,26 +1653,27 @@ ifneq ($(DIST_FILES),)
$(DIST)/bin:
$(NSINSTALL) -D $@
libs:: $(DIST_FILES) $(DIST)/bin
libs:: $(DIST)/bin
libs:: $(DIST_FILES)
@$(EXIT_ON_ERROR) \
for f in $(DIST_FILES); do \
for f in $^; do \
dest=$(FINAL_TARGET)/`basename $$f`; \
$(RM) -f $$dest; \
$(PYTHON) $(MOZILLA_DIR)/config/Preprocessor.py \
$(XULAPP_DEFINES) $(DEFINES) $(ACDEFINES) $(XULPPFLAGS) \
$(srcdir)/$$f > $$dest; \
$$f > $$dest; \
done
endif
ifneq ($(DIST_CHROME_FILES),)
libs:: $(DIST_CHROME_FILES)
@$(EXIT_ON_ERROR) \
for f in $(DIST_CHROME_FILES); do \
for f in $^; do \
dest=$(FINAL_TARGET)/chrome/`basename $$f`; \
$(RM) -f $$dest; \
$(PYTHON) $(MOZILLA_DIR)/config/Preprocessor.py \
$(XULAPP_DEFINES) $(DEFINES) $(ACDEFINES) $(XULPPFLAGS) \
$(srcdir)/$$f > $$dest; \
$$f > $$dest; \
done
endif

Просмотреть файл

@ -1407,9 +1407,10 @@ ifndef NO_DIST_INSTALL
$(FINAL_TARGET)/$(PREF_DIR):
$(NSINSTALL) -D $@
libs:: $(FINAL_TARGET)/$(PREF_DIR) $(PREF_JS_EXPORTS)
libs:: $(FINAL_TARGET)/$(PREF_DIR)
libs:: $(PREF_JS_EXPORTS)
$(EXIT_ON_ERROR) \
for i in $(PREF_JS_EXPORTS); do \
for i in $^; do \
dest=$(FINAL_TARGET)/$(PREF_DIR)/`basename $$i`; \
$(RM) -f $$dest; \
$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(PREF_PPFLAGS) $(DEFINES) $(ACDEFINES) $(XULPPFLAGS) $$i > $$dest; \
@ -1652,26 +1653,27 @@ ifneq ($(DIST_FILES),)
$(DIST)/bin:
$(NSINSTALL) -D $@
libs:: $(DIST_FILES) $(DIST)/bin
libs:: $(DIST)/bin
libs:: $(DIST_FILES)
@$(EXIT_ON_ERROR) \
for f in $(DIST_FILES); do \
for f in $^; do \
dest=$(FINAL_TARGET)/`basename $$f`; \
$(RM) -f $$dest; \
$(PYTHON) $(MOZILLA_DIR)/config/Preprocessor.py \
$(XULAPP_DEFINES) $(DEFINES) $(ACDEFINES) $(XULPPFLAGS) \
$(srcdir)/$$f > $$dest; \
$$f > $$dest; \
done
endif
ifneq ($(DIST_CHROME_FILES),)
libs:: $(DIST_CHROME_FILES)
@$(EXIT_ON_ERROR) \
for f in $(DIST_CHROME_FILES); do \
for f in $^; do \
dest=$(FINAL_TARGET)/chrome/`basename $$f`; \
$(RM) -f $$dest; \
$(PYTHON) $(MOZILLA_DIR)/config/Preprocessor.py \
$(XULAPP_DEFINES) $(DEFINES) $(ACDEFINES) $(XULPPFLAGS) \
$(srcdir)/$$f > $$dest; \
$$f > $$dest; \
done
endif