David 'Digit' Turner | 902cd51 | 2015-11-24 10:49:12 +0100 | [diff] [blame] | 1 | # 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 | # |
| 21 | MAKE_TEST := $(lastword a b c d e f) |
| 22 | ifneq ($(MAKE_TEST),f) |
| 23 | $(error,This build system requires GNU Make 3.81 or higher to run !) |
| 24 | endif |
| 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 |
| 31 | ifneq ($(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.) |
| 34 | endif |
| 35 | |
Erwin Jansen | fa444a1 | 2018-10-09 18:36:18 -0700 | [diff] [blame] | 36 | message: |
| 37 | @echo "The GNUMake system has been deprecated, please use cmake." |
| 38 | @echo "source ./android/envsetup.sh" |
| 39 | @echo "./android/rebuild.sh" |
David 'Digit' Turner | 902cd51 | 2015-11-24 10:49:12 +0100 | [diff] [blame] | 40 | # END OF FILE |
| 41 | |