| # Copyright 2021 The Android KVM Authors |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| # This Makefile only serves as a launcher of the root Makefile with |
| # the GNU Make prebuilt. This way we avoid the need to put the prebuilt |
| # in PATH prior to running `make`. |
| # We use a prebuilt of Make because some systems come with an old version |
| # that is not compatible with some of the projects built in this repo. |
| |
| ROOTDIR := $(CURDIR) |
| MAKE := $(ROOTDIR)/prebuilts/linux-x86/make/bin/make |
| MAKEFILE := $(ROOTDIR)/build/Makefile.root |
| |
| .PHONY: FORCE |
| FORCE: |
| |
| # At least one target must be defined for `make` (no arguments) to succeed. |
| # The name must match the default rule in $MAKEFILE. |
| .DEFAULT_GOAL := default |
| default: FORCE |
| $(MAKE) -f $(MAKEFILE) $@ |
| |
| # Catch-all target that propagates the call to the root Makefile. |
| %: FORCE |
| $(MAKE) -f $(MAKEFILE) $@ |