2
# This Source Code Form is subject to the terms of the Mozilla Public
3
# License, v. 2.0. If a copy of the MPL was not distributed with this
4
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
topsrcdir = @top_srcdir@
10
relativesrcdir = @relativesrcdir@
12
include $(DEPTH)/config/autoconf.mk
19
include $(topsrcdir)/config/rules.mk
21
# We install to _profile/pgo
23
include $(topsrcdir)/build/automation-build.mk
25
# Need to override the browser_path from binary-location.mk (included via automation-build.mk)
26
# since we want to run from e.g. dist/firefox rather than dist/bin
27
ifeq ($(OS_ARCH),Darwin)
28
browser_path = \"$(TARGET_DIST)/$(MOZ_APP_NAME)/$(MOZ_MACBUNDLE_NAME)/Contents/MacOS/$(PROGRAM)\"
30
browser_path = \"$(TARGET_DIST)/$(MOZ_APP_NAME)/$(PROGRAM)\"
33
# Stuff to make a build with a profile
37
$(topsrcdir)/build/automationutils.py \
41
server-locations.txt \
45
genpgocert.py: genpgocert.py.in
46
$(PYTHON) $(topsrcdir)/config/Preprocessor.py \
47
$(AUTOMATION_PPARGS) $(DEFINES) $(ACDEFINES) $^ > $@
49
GARBAGE += genpgocert.py
52
$(INSTALL) $^ $(_PROFILE_DIR)
55
$(PYTHON) $(DEPTH)/_profile/pgo/genpgocert.py --gen-server