blob: 6755202b9b20a00a7e0110b385b2615ea795e1d7 [file] [log] [blame]
David 'Digit' Turner902cd512015-11-24 10:49:12 +01001# Copyright 2015 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16# DO NOT MODIFY THIS FILE
17
18# Check that we have at least GNU Make 3.81
19# We do this by detecting whether 'lastword' is supported
20#
21MAKE_TEST := $(lastword a b c d e f)
22ifneq ($(MAKE_TEST),f)
23 $(error,This build system requires GNU Make 3.81 or higher to run !)
24endif
25
26# Find the source installation path, should be this file's location.
27_BUILD_ROOT := $(dir $(lastword $(MAKEFILE_LIST)))
28_BUILD_ROOT := $(_BUILD_ROOT:%/=%)
29
30# Complain if the path contains spaces
31ifneq ($(words $(_BUILD_ROOT)),1)
32 $(info,The source installation path contains spaces: '$(_BUILD_ROOT)')
33 $(error,Please fix the problem by reinstalling to a different location.)
34endif
35
Erwin Jansenfa444a12018-10-09 18:36:18 -070036message:
37 @echo "The GNUMake system has been deprecated, please use cmake."
38 @echo "source ./android/envsetup.sh"
39 @echo "./android/rebuild.sh"
David 'Digit' Turner902cd512015-11-24 10:49:12 +010040# END OF FILE
41