browser/extensions/Makefile.in
author Sean Stangl <sstangl@mozilla.com>
Tue, 16 Apr 2013 13:47:10 -0700
changeset 128986 089c532f32d1a1515b2554b451a828d497b4f83b
parent 123224 3fc89f2888fe975cc617c836c79073fa352e96aa
child 143763 2a4e30e83513fe4dcc6b158ce6ec50fa1a360a80
permissions -rw-r--r--
Bug 860029 - Standardize Modelines in the JS Module. r=njn

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.

DEPTH      = @DEPTH@
topsrcdir  = @top_srcdir@
srcdir     = @srcdir@
VPATH      = @srcdir@

CHROMEDIR = $(call core_abspath,$(FINAL_TARGET))/chrome

include $(DEPTH)/config/autoconf.mk

ifdef MOZ_METRO
GENERATED_DIRS = $(DIST)/bin/metro/chrome
endif

include $(topsrcdir)/config/rules.mk

exclude_files = \
  test \
  install.rdf \
  bootstrap.js \
  icon.png \
  icon64.png \
  $(NULL)

$(FINAL_TARGET)/chrome/pdfjs.manifest: $(GLOBAL_DEPS)
	printf "manifest pdfjs/chrome.manifest" > $@

libs:: $(FINAL_TARGET)/chrome/pdfjs.manifest
	$(PYTHON) $(topsrcdir)/config/nsinstall.py \
	  $(srcdir)/pdfjs \
          $(foreach exclude,$(exclude_files), -X $(srcdir)/pdfjs/$(exclude)) \
          $(FINAL_TARGET)/chrome
	$(PYTHON) $(MOZILLA_DIR)/config/buildlist.py \
	  $(FINAL_TARGET)/chrome.manifest "manifest chrome/pdfjs.manifest"

ifdef MOZ_METRO
$(DIST)/bin/metro/chrome/pdfjs.manifest: $(GLOBAL_DEPS)
	printf "manifest pdfjs/chrome.manifest" > $@

libs:: $(DIST)/bin/metro/chrome/pdfjs.manifest
	$(PYTHON) $(topsrcdir)/config/nsinstall.py \
	  $(srcdir)/pdfjs \
          $(foreach exclude,$(exclude_files), -X $(srcdir)/pdfjs/$(exclude)) \
          $(DIST)/bin/metro/chrome
	$(PYTHON) $(MOZILLA_DIR)/config/buildlist.py \
	  $(DIST)/bin/metro/chrome.manifest "manifest chrome/pdfjs.manifest"
endif