Bug 827851 - Move the rules from bug 822017 after including rules.mk; r=ted
authorMike Hommey <mh+mozilla@glandium.org>
Tue, 08 Jan 2013 18:22:51 +0100
changeset 127992 3a5db98b87e4dccda27f3fee83b4a022b99c81f2
parent 127991 86e85b93cad1d4791aa46e5085536a23b39fc85d
child 127993 e1a3209ce6e310346108cae13b17a02b8b60a398
push idunknown
push userunknown
push dateunknown
reviewersted
bugs827851, 822017
milestone21.0a1
Bug 827851 - Move the rules from bug 822017 after including rules.mk; r=ted
browser/app/profile/extensions/Makefile.in
--- a/browser/app/profile/extensions/Makefile.in
+++ b/browser/app/profile/extensions/Makefile.in
@@ -22,31 +22,31 @@ ifneq (,$(filter aurora beta,$(MOZ_UPDAT
 EXTENSIONS = \
   testpilot@labs.mozilla.com \
   $(NULL)
 
 all_xpis = $(foreach dir,$(EXTENSIONS),$(DISTROEXT)/$(dir).xpi)
 libs:: $(all_xpis)
 GARBAGE += $(all_xpis)
 
-$(all_xpis): $(DISTROEXT)/%.xpi: $(call mkdir_deps,$(DISTROEXT)) libs-%
-	cd $* && \
-	$(ZIP) -r9XD $@ * -x \*.in -x \*.mkdir.done
-	cd $(call core_abspath,$(srcdir)/$*) && \
-	$(ZIP) -r9XD $@ * -x \*.in -x \*.mkdir.done
-
-.PHONY: $(all_xpis:.xpi=)
-
 define pp_one
 $(2) := $(2)
 $(2)_PATH := $(dir $(2))
 $(2)_TARGET := libs-$(1)
 PP_TARGETS += $(2)
 endef
 $(foreach d,$(EXTENSIONS), \
   $(foreach in,$(shell cd $(srcdir) ; find $(d) -name '*.in'), \
     $(eval $(call pp_one,$(d),$(in))) \
   ) \
 )
 
 endif
 
 include $(topsrcdir)/config/rules.mk
+
+$(all_xpis): $(DISTROEXT)/%.xpi: $(call mkdir_deps,$(DISTROEXT)) libs-%
+	cd $* && \
+	$(ZIP) -r9XD $@ * -x \*.in -x \*.mkdir.done
+	cd $(call core_abspath,$(srcdir)/$*) && \
+	$(ZIP) -r9XD $@ * -x \*.in -x \*.mkdir.done
+
+.PHONY: $(all_xpis:.xpi=)