Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 #
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/.
6 #
7 # functions.mk
8 #
9 # Defines functions that are needed by various Makefiles throughout the build
10 # system, which are needed before config.mk can be included.
11 #
13 # Define an include-at-most-once flag
14 ifdef INCLUDED_FUNCTIONS_MK
15 $(error Do not include functions.mk twice!)
16 endif
17 INCLUDED_FUNCTIONS_MK = 1
19 core_abspath = $(error core_abspath is unsupported, use $$(abspath) instead)
20 core_realpath = $(error core_realpath is unsupported)
22 core_winabspath = $(error core_winabspath is unsupported)
24 # Run a named Python build action. The first argument is the name of the build
25 # action. The second argument are the arguments to pass to the action (space
26 # delimited arguments). e.g.
27 #
28 # libs::
29 # $(call py_action,purge_manifests,_build_manifests/purge/foo.manifest)
30 ifdef .PYMAKE
31 py_action = %mozbuild.action.$(1) main $(2)
32 else
33 py_action = $(PYTHON) -m mozbuild.action.$(1) $(2)
34 endif