Joey Armstrong | a516c32 | 2023-01-25 17:40:42 -0500 | [diff] [blame] | 1 | # -*- makefile -*- |
| 2 | # ----------------------------------------------------------------------- |
| 3 | # Copyright 2022-2023 Open Networking Foundation (ONF) and the ONF Contributors |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | # |
| 17 | # SPDX-FileCopyrightText: 2022 Open Networking Foundation (ONF) and the ONF Contributors |
| 18 | # SPDX-License-Identifier: Apache-2.0 |
| 19 | # ----------------------------------------------------------------------- |
| 20 | |
| 21 | $(if $(DEBUG),$(warning ENTER)) |
| 22 | |
| 23 | ## ----------------------------------------------------------------------- |
| 24 | ## Intent: Checkout submodules required by ci-management |
| 25 | ## ----------------------------------------------------------------------- |
| 26 | submodule-deps := $(null) |
| 27 | submodule-deps += submodules# # named pseudo target |
| 28 | submodule-deps += global-jjb |
| 29 | submodule-deps += lf-ansible |
| 30 | submodule-deps += packer |
| 31 | |
| 32 | .PHONY: $(submodule-deps) |
| 33 | $(submodule-deps): |
| 34 | git submodule init |
| 35 | git submodule update |
| 36 | |
| 37 | ## ----------------------------------------------------------------------- |
| 38 | ## ----------------------------------------------------------------------- |
| 39 | sterile :: |
| 40 | $(RM) -r $(submodule-deps) |
| 41 | |
| 42 | ## ----------------------------------------------------------------------- |
| 43 | ## ----------------------------------------------------------------------- |
| 44 | help :: |
| 45 | @echo |
| 46 | @echo '[GIT-SUBMODULES]' |
| 47 | @echo ' submodules Checkout dependent git submodules' |
| 48 | ifdef VERBOSE |
| 49 | @echo ' global-jjb Checkout ci-management submodule global-jjb' |
| 50 | @echo ' lf-ansible Checkout ci-management submodule lf-ansible' |
| 51 | @echo ' packer Checkout ci-management submodule packer' |
| 52 | endif |
| 53 | |
| 54 | ## ----------------------------------------------------------------------- |
| 55 | ## ----------------------------------------------------------------------- |
| 56 | todo :: |
| 57 | @echo "Generalize logc, update to depend on .git/ rather than named targets." |
| 58 | |
| 59 | $(if $(DEBUG),$(warning LEAVE)) |
| 60 | |
| 61 | # [EOF] |