|
| 1 | +# |
| 2 | +# Copyright 2017-2018 Nest Labs Inc. All Rights Reserved. |
| 3 | +# |
| 4 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +# you may not use this file except in compliance with the License. |
| 6 | +# You may obtain a copy of the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | +# |
| 16 | + |
| 17 | +# |
| 18 | +# Description: |
| 19 | +# This file is the makefile for inlining optional and required |
| 20 | +# third-party packages as package-internal copies and for providing |
| 21 | +# convenience targets for bootstrapping the GNU autotools-based build |
| 22 | +# system used by this package. |
| 23 | +# |
| 24 | +# If your package has dependent git repositories that you might |
| 25 | +# otherwise be inclinded to subtree in, you can define a |
| 26 | +# "repos.conf" file at the top of your project that enumerates |
| 27 | +# the repositories, the branch thereof, and where to put it in |
| 28 | +# your project. An example is shown below: |
| 29 | +# |
| 30 | +# [submodule "nlassert"] |
| 31 | +# path = third_party/nlassert/repo |
| 32 | +# url = git@github.com:nestlabs/nlassert.git |
| 33 | +# branch = master |
| 34 | +# update = none |
| 35 | +# [submodule "nlunit-test"] |
| 36 | +# path = third_party/nlunit-test/repo |
| 37 | +# url = git@github.com:nestlabs/nlunit-test.git |
| 38 | +# branch = master |
| 39 | +# update = none |
| 40 | +# |
| 41 | + |
| 42 | +ThisMakefile := $(firstword $(MAKEFILE_LIST)) |
| 43 | + |
| 44 | +builddir ?= . |
| 45 | +abs_builddir ?= $(realpath $(builddir)) |
| 46 | +top_builddir ?= $(builddir) |
| 47 | +abs_top_builddir ?= $(realpath $(top_builddir)) |
| 48 | +srcdir ?= $(dir $(realpath $(ThisMakefile))) |
| 49 | +abs_srcdir ?= $(realpath $(srcdir)) |
| 50 | +top_srcdir ?= $(srcdir) |
| 51 | +abs_top_srcdir ?= $(realpath $(top_srcdir)) |
| 52 | + |
| 53 | +nlbuild_autotools_stem ?= third_party/nlbuild-autotools/repo |
| 54 | +abs_top_nlbuild_autotools_dir ?= $(abs_top_srcdir)/$(nlbuild_autotools_stem) |
| 55 | + |
| 56 | +include $(abs_top_nlbuild_autotools_dir)/make/pre.mak |
| 57 | +include $(abs_top_nlbuild_autotools_dir)/make/host/tools/bootstrap.mak |
| 58 | + |
| 59 | +# |
| 60 | +# Add any project-specific bootstrap help commands to this |
| 61 | +# 'help-hook' target. |
| 62 | +# |
| 63 | +# These commands will be executed AFTER the core bootstrap 'help' |
| 64 | +# target commands. |
| 65 | +# |
| 66 | +help-hook: |
| 67 | + |
| 68 | +# |
| 69 | +# Add any project-specific bootstrap help commands to this |
| 70 | +# 'help-bootstrap-hook' target. |
| 71 | +# |
| 72 | +# These commands will be executed AFTER the core bootstrap 'help' and |
| 73 | +# 'help-bootstrap' target commands. |
| 74 | +# |
| 75 | +help-bootstrap-hook: |
| 76 | + |
| 77 | +# |
| 78 | +# Add any project-specific bootstrap help commands to this |
| 79 | +# 'help-repos-hook' target. |
| 80 | +# |
| 81 | +# These commands will be executed AFTER the core bootstrap 'help' and |
| 82 | +# 'help-repos' target commands. |
| 83 | +# |
| 84 | +help-repos-hook: |
| 85 | + |
| 86 | +# |
| 87 | +# Add any project-specific bootstrap repos commands to this |
| 88 | +# 'repos-hook' target. |
| 89 | +# |
| 90 | +# These commands will be executed AFTER the core bootstrap 'repos' |
| 91 | +# target commands. |
| 92 | +# |
| 93 | +repos-hook: |
| 94 | + |
| 95 | +# |
| 96 | +# Add any project-specific bootstrap repos commands to this |
| 97 | +# 'clean-repos-hook' target. |
| 98 | +# |
| 99 | +# These commands will be executed BEFORE the core bootstrap 'clean-repos' |
| 100 | +# target commands. |
| 101 | +# |
| 102 | +clean-repos-hook: |
| 103 | + |
| 104 | +include $(abs_top_nlbuild_autotools_dir)/make/post.mak |
| 105 | +include $(abs_top_nlbuild_autotools_dir)/make/post/rules/bootstrap.mak |
0 commit comments