mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 15:15:23 +00:00
33 lines
1.0 KiB
Makefile
33 lines
1.0 KiB
Makefile
#
|
|
# 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/.
|
|
|
|
USE_RCS_MK := 1
|
|
include $(topsrcdir)/config/makefiles/rcs.mk
|
|
|
|
ifdef MOZILLA_OFFICIAL
|
|
MOZ_HISTOGRAMS_VERSION ?= $(call getSourceRepo)/rev/$(firstword $(shell hg -R $(topsrcdir) parent --template='{node|short}\n' 2>/dev/null))
|
|
ifdef MOZ_HISTOGRAMS_VERSION
|
|
DEFINES += -DHISTOGRAMS_FILE_VERSION='$(MOZ_HISTOGRAMS_VERSION)'
|
|
endif
|
|
endif
|
|
|
|
INSTALL_TARGETS += histoenums
|
|
histoenums_FILES := TelemetryHistogramEnums.h
|
|
histoenums_DEST = $(DIST)/include/mozilla
|
|
histoenums_TARGET := export
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
# This is so hacky. Waiting on bug 988938.
|
|
addondir = $(srcdir)/tests/addons
|
|
testdir = $(abspath $(DEPTH)/_tests/xpcshell/toolkit/components/telemetry/tests/unit)
|
|
|
|
misc:: $(call mkdir_deps,$(testdir))
|
|
$(EXIT_ON_ERROR) \
|
|
for dir in $(addondir)/*; do \
|
|
base=`basename $$dir`; \
|
|
(cd $$dir && zip -qr $(testdir)/$$base.xpi *); \
|
|
done
|