Joey Armstrong | 36592e3 | 2022-11-28 09:00:28 -0500 | [diff] [blame] | 1 | # -*- makefile -*- |
| 2 | # ----------------------------------------------------------------------- |
Eric Ball | 624906c | 2025-03-28 18:14:55 -0700 | [diff] [blame] | 3 | # Copyright 2022-2025 Open Networking Foundation Contributors |
Joey Armstrong | 36592e3 | 2022-11-28 09:00:28 -0500 | [diff] [blame] | 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 | # ----------------------------------------------------------------------- |
Eric Ball | 624906c | 2025-03-28 18:14:55 -0700 | [diff] [blame] | 17 | # SPDX-FileCopyrightText: 2022-2025 Open Networking Foundation Contributors |
Joey Armstrong | 9f7c57c | 2024-05-03 18:29:30 -0400 | [diff] [blame] | 18 | # SPDX-License-Identifier: Apache-2.0 |
| 19 | # ----------------------------------------------------------------------- |
| 20 | # Intent: Makefile for Sphinx documentation |
| 21 | # ----------------------------------------------------------------------- |
Zack Williams | 071eda2 | 2019-05-15 18:19:51 -0700 | [diff] [blame] | 22 | |
Joey Armstrong | 9f7c57c | 2024-05-03 18:29:30 -0400 | [diff] [blame] | 23 | ifndef .DEFAULT_GOAL |
Joey Armstrong | e16037a | 2024-06-28 15:36:09 -0400 | [diff] [blame] | 24 | export .DEFAULT_GOAL := help # no->(?=), help target evaluated late |
Joey Armstrong | 9f7c57c | 2024-05-03 18:29:30 -0400 | [diff] [blame] | 25 | endif |
| 26 | MAKECMDGOALS ?= help |
Joey Armstrong | 36592e3 | 2022-11-28 09:00:28 -0500 | [diff] [blame] | 27 | |
Joey Armstrong | 36592e3 | 2022-11-28 09:00:28 -0500 | [diff] [blame] | 28 | ##--------------------## |
| 29 | ##---] INCLUDES [---## |
| 30 | ##--------------------## |
Joey Armstrong | 9f7c57c | 2024-05-03 18:29:30 -0400 | [diff] [blame] | 31 | ifdef USE_LF_MK |
| 32 | include lf/include.mk |
| 33 | else |
Joey Armstrong | e16037a | 2024-06-28 15:36:09 -0400 | [diff] [blame] | 34 | venv-name ?= .venv |
Joey Armstrong | 9f7c57c | 2024-05-03 18:29:30 -0400 | [diff] [blame] | 35 | include lf/transition.mk |
| 36 | endif # ifdef USE_LF_MK |
Zack Williams | 071eda2 | 2019-05-15 18:19:51 -0700 | [diff] [blame] | 37 | |
| 38 | # You can set these variables from the command line. |
| 39 | SPHINXOPTS ?= |
| 40 | SPHINXBUILD ?= sphinx-build |
| 41 | SOURCEDIR ?= . |
| 42 | BUILDDIR ?= _build |
Eric Ball | a2761a7 | 2025-03-31 15:06:54 -0700 | [diff] [blame^] | 43 | |
| 44 | # If running on Jenkins, we need to pick up the GERRIT_BRANCH env var. |
| 45 | # Otherwise, we can simply use the current branch. |
| 46 | ifdef GERRIT_BRANCH |
| 47 | BRANCH := $(GERRIT_BRANCH) |
| 48 | else |
| 49 | BRANCH := $(shell git branch --show-current) |
| 50 | endif |
Zack Williams | 071eda2 | 2019-05-15 18:19:51 -0700 | [diff] [blame] | 51 | |
Zack Williams | 88df474 | 2019-12-20 08:24:47 -0700 | [diff] [blame] | 52 | # Other repos with documentation to include. |
| 53 | # edit the `git_refs` file with the commit/tag/branch that you want to use |
Eric Ball | fc4ad7a | 2025-02-05 17:22:21 -0800 | [diff] [blame] | 54 | OTHER_REPO_DOCS ?= bbsim ofagent-go openolt voltctl voltha-openolt-adapter voltha-openonu-adapter-go voltha-protos device-management-interface voltha-helm-charts |
| 55 | # Temporarily disabled: cord-tester voltha-system-tests |
Zack Williams | 88df474 | 2019-12-20 08:24:47 -0700 | [diff] [blame] | 56 | |
Joey Armstrong | 36592e3 | 2022-11-28 09:00:28 -0500 | [diff] [blame] | 57 | ifdef NO_OTHER_REPO_DOCS |
| 58 | # Inhibit pulling in external repos. |
| 59 | # python 3.10+ patching not supported by all repos yet. |
| 60 | OTHER_REPO_DOCS := $(null) |
| 61 | endif |
| 62 | |
Zack Williams | 16042b6 | 2020-03-29 22:03:16 -0700 | [diff] [blame] | 63 | # Static docs, built by other means (usually robot framework) |
Eric Ball | fc4ad7a | 2025-02-05 17:22:21 -0800 | [diff] [blame] | 64 | # STATIC_DOCS := _static/voltha-system-tests _static/cord-tester |
Zack Williams | 16042b6 | 2020-03-29 22:03:16 -0700 | [diff] [blame] | 65 | |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 66 | # Why is existing source Makefile PHONY (?) |
Zack Williams | 88df474 | 2019-12-20 08:24:47 -0700 | [diff] [blame] | 67 | .PHONY: help test lint reload Makefile prep |
Zack Williams | 071eda2 | 2019-05-15 18:19:51 -0700 | [diff] [blame] | 68 | |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 69 | ## ----------------------------------------------------------------------- |
Joey Armstrong | 721519c | 2023-11-13 15:30:54 -0500 | [diff] [blame] | 70 | ## Intent: Display makefile target help |
| 71 | ## ----------------------------------------------------------------------- |
| 72 | help :: help-targets-main |
| 73 | help-verbose :: help-targets-sphinx |
| 74 | |
| 75 | ## ----------------------------------------------------------------------- |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 76 | ## Intent: Real time viewing, dynamically generate and reload document |
| 77 | ## changes for web browser viewing. |
| 78 | ## Usage: |
| 79 | ## make reload |
| 80 | ## ----------------------------------------------------------------------- |
Eric Ball | fc4ad7a | 2025-02-05 17:22:21 -0800 | [diff] [blame] | 81 | reload: $(venv-activate-script) |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 82 | $(activate) && sphinx-reload $(SOURCEDIR) |
Zack Williams | 071eda2 | 2019-05-15 18:19:51 -0700 | [diff] [blame] | 83 | |
Joey Armstrong | 8d62cd9 | 2022-12-22 13:53:48 -0500 | [diff] [blame] | 84 | ## ----------------------------------------------------------------------- |
| 85 | ## Intent: lint and link verification. linkcheck is part of sphinx |
Joey Armstrong | 64b8249 | 2023-06-01 17:34:39 -0400 | [diff] [blame] | 86 | ## See Also: make test-errors |
Joey Armstrong | 8d62cd9 | 2022-12-22 13:53:48 -0500 | [diff] [blame] | 87 | ## ----------------------------------------------------------------------- |
Zack Williams | 071eda2 | 2019-05-15 18:19:51 -0700 | [diff] [blame] | 88 | test: lint linkcheck |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 89 | |
Joey Armstrong | 50895b8 | 2023-09-14 16:44:28 -0400 | [diff] [blame] | 90 | # [TODO] relocate into repo:onf-make/ |
Eric Ball | fc4ad7a | 2025-02-05 17:22:21 -0800 | [diff] [blame] | 91 | lint : $(venv-activate-script) |
| 92 | linkcheck : $(venv-activate-script) |
Joey Armstrong | 50895b8 | 2023-09-14 16:44:28 -0400 | [diff] [blame] | 93 | |
Joey Armstrong | 8d62cd9 | 2022-12-22 13:53:48 -0500 | [diff] [blame] | 94 | ## ----------------------------------------------------------------------- |
| 95 | ## Intent: Exercise all generation targets |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 96 | ## Bridge: library workaround to support legacy targets |
Joey Armstrong | 8d62cd9 | 2022-12-22 13:53:48 -0500 | [diff] [blame] | 97 | ## ----------------------------------------------------------------------- |
| 98 | test-all-targets += html |
| 99 | test-all-targets += coverage |
| 100 | # test-all-targets += changes |
| 101 | # test-all-targets += info |
| 102 | test-all-targets += man |
| 103 | test-all-targe4ts += text |
| 104 | # test-all-targets += latex |
| 105 | |
Joey Armstrong | 8d62cd9 | 2022-12-22 13:53:48 -0500 | [diff] [blame] | 106 | test-all : test |
| 107 | $(MAKE) $(test-all-targets) |
| 108 | |
Joey Armstrong | 36592e3 | 2022-11-28 09:00:28 -0500 | [diff] [blame] | 109 | # doctest |
| 110 | # coverage |
| 111 | # linkcheck |
Zack Williams | 071eda2 | 2019-05-15 18:19:51 -0700 | [diff] [blame] | 112 | |
Joey Armstrong | 0cbee51 | 2023-10-18 15:39:24 -0400 | [diff] [blame] | 113 | # ----------------------------------------------------------------------- |
Zack Williams | 071eda2 | 2019-05-15 18:19:51 -0700 | [diff] [blame] | 114 | # currently not enabled, should be added to lint target |
Joey Armstrong | 0cbee51 | 2023-10-18 15:39:24 -0400 | [diff] [blame] | 115 | # [TODO] Create repo:onf-make/makefiles/lint/mdl |
| 116 | # ----------------------------------------------------------------------- |
Zack Williams | 071eda2 | 2019-05-15 18:19:51 -0700 | [diff] [blame] | 117 | LINT_STYLE ?= mdl_strict.rb |
| 118 | md-lint: | $(OTHER_REPO_DOCS) |
| 119 | @echo "markdownlint(mdl) version: `mdl --version`" |
| 120 | @echo "style config:" |
| 121 | @echo "---" |
| 122 | @cat $(LINT_STYLE) |
| 123 | @echo "---" |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 124 | mdl -s $(LINT_STYLE) `find -L $(SOURCEDIR) ! -path "./_$(venv-activate-script)/*" ! -path "./_build/*" ! -path "./repos/*" ! -path "*vendor*" -name "*.md"` |
Zack Williams | 071eda2 | 2019-05-15 18:19:51 -0700 | [diff] [blame] | 125 | |
| 126 | # clean up |
Joey Armstrong | 64b8249 | 2023-06-01 17:34:39 -0400 | [diff] [blame] | 127 | clean :: |
Joey Armstrong | 36592e3 | 2022-11-28 09:00:28 -0500 | [diff] [blame] | 128 | $(RM) -r $(BUILDDIR) $(OTHER_REPO_DOCS) $(STATIC_DOCS) |
Zack Williams | 071eda2 | 2019-05-15 18:19:51 -0700 | [diff] [blame] | 129 | |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 130 | clean-all sterile :: clean |
| 131 | $(RM) -r $(venv-activate-script) repos |
Zack Williams | 071eda2 | 2019-05-15 18:19:51 -0700 | [diff] [blame] | 132 | |
Zack Williams | 071eda2 | 2019-05-15 18:19:51 -0700 | [diff] [blame] | 133 | # checkout the repos inside repos/ dir |
| 134 | repos: |
| 135 | mkdir repos |
| 136 | |
| 137 | # build directory paths in repos/* to perform 'git clone <repo>' into |
| 138 | CHECKOUT_REPOS = $(foreach repo,$(OTHER_REPO_DOCS),repos/$(repo)) |
| 139 | |
| 140 | # Host holding the git server |
| 141 | REPO_HOST ?= https://gerrit.opencord.org |
| 142 | |
| 143 | # For QA patchset validation - set SKIP_CHECKOUT to the repo name and |
| 144 | # pre-populate it under repos/ with the specific commit to being validated |
| 145 | SKIP_CHECKOUT ?= |
| 146 | |
Zack Williams | 88df474 | 2019-12-20 08:24:47 -0700 | [diff] [blame] | 147 | # clone (only if doesn't exist) |
Zack Williams | 071eda2 | 2019-05-15 18:19:51 -0700 | [diff] [blame] | 148 | $(CHECKOUT_REPOS): | repos |
Zack Williams | 071eda2 | 2019-05-15 18:19:51 -0700 | [diff] [blame] | 149 | if [ ! -d '$@' ] ;\ |
| 150 | then git clone $(REPO_HOST)/$(@F) $@ ;\ |
Zack Williams | 071eda2 | 2019-05-15 18:19:51 -0700 | [diff] [blame] | 151 | fi |
| 152 | |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 153 | ## ----------------------------------------------------------------------- |
| 154 | ## Intent: checkout correct ref if not under test, then copy |
| 155 | ## subdirectories into main docs dir |
| 156 | ## ----------------------------------------------------------------------- |
Zack Williams | 071eda2 | 2019-05-15 18:19:51 -0700 | [diff] [blame] | 157 | $(OTHER_REPO_DOCS): | $(CHECKOUT_REPOS) |
Zack Williams | 88df474 | 2019-12-20 08:24:47 -0700 | [diff] [blame] | 158 | if [ "$(SKIP_CHECKOUT)" != "$@" ] ;\ |
| 159 | then GIT_REF=`grep '^$@ ' git_refs | awk '{print $$3}'` ;\ |
Zack Williams | 6c1703f | 2019-12-20 15:31:58 -0700 | [diff] [blame] | 160 | cd "repos/$@" && git checkout $$GIT_REF ;\ |
Zack Williams | 88df474 | 2019-12-20 08:24:47 -0700 | [diff] [blame] | 161 | fi |
Zack Williams | 17e3402 | 2019-12-20 13:51:54 -0700 | [diff] [blame] | 162 | GIT_SUBDIR=`grep '^$@ ' git_refs | awk '{print $$2}'` ;\ |
Zack Williams | 3308552 | 2020-02-28 11:41:01 -0700 | [diff] [blame] | 163 | cp -r repos/$(@)$$GIT_SUBDIR $@ ;\ |
Zack Williams | 071eda2 | 2019-05-15 18:19:51 -0700 | [diff] [blame] | 164 | |
Eric Ball | fc4ad7a | 2025-02-05 17:22:21 -0800 | [diff] [blame] | 165 | # # Build Robot documentation in voltha-system-tests and copy it into _static. |
| 166 | # _static/voltha-system-tests: | $(OTHER_REPO_DOCS) |
| 167 | # make -C voltha-system-tests gendocs |
| 168 | # mkdir -p $@ |
| 169 | # cp -r voltha-system-tests/gendocs/* $@ |
| 170 | # |
| 171 | # # Build Robot documentation in cord-tester and copy it into _static. |
| 172 | # _static/cord-tester: | $(OTHER_REPO_DOCS) |
| 173 | # make -C cord-tester gendocs |
| 174 | # mkdir -p $@ |
| 175 | # cp -r cord-tester/gendocs/* $@ |
Andy Bavier | 39d67b1 | 2020-02-27 16:08:52 -0700 | [diff] [blame] | 176 | |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 177 | ## ----------------------------------------------------------------------- |
Eric Ball | 624906c | 2025-03-28 18:14:55 -0700 | [diff] [blame] | 178 | ## Intent: Build docs for the current branch |
| 179 | ## ----------------------------------------------------------------------- |
| 180 | docs: $(venv-activate-script) Makefile | prep $(OTHER_REPO_DOCS) |
| 181 | $(activate) && sphinx-build "$(SOURCEDIR)" "$(BUILDDIR)/$(BRANCH)" $(SPHINXOPTS) |
| 182 | ifeq ($(BRANCH),master) |
| 183 | cp "$(SOURCEDIR)/_templates/meta_refresh.html" "$(BUILDDIR)/index.html" |
| 184 | endif |
| 185 | |
| 186 | ## ----------------------------------------------------------------------- |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 187 | ## Intent: generate a list of git checksums suitable for updating git_refs |
| 188 | ## ----------------------------------------------------------------------- |
Zack Williams | 071eda2 | 2019-05-15 18:19:51 -0700 | [diff] [blame] | 189 | freeze: repos |
| 190 | @for repo in $(OTHER_REPO_DOCS) ; do \ |
| 191 | GIT_SUBDIR=`grep "^$$repo " git_refs | awk '{print $$2}'` ;\ |
Zack Williams | 6c1703f | 2019-12-20 15:31:58 -0700 | [diff] [blame] | 192 | cd "repos/$$repo" > /dev/null ;\ |
Zack Williams | 071eda2 | 2019-05-15 18:19:51 -0700 | [diff] [blame] | 193 | HEAD_SHA=`git rev-parse HEAD` ;\ |
| 194 | printf "%-24s %-8s %-40s\n" $$repo $$GIT_SUBDIR $$HEAD_SHA ;\ |
Zack Williams | 6c1703f | 2019-12-20 15:31:58 -0700 | [diff] [blame] | 195 | cd ../.. ;\ |
Zack Williams | 071eda2 | 2019-05-15 18:19:51 -0700 | [diff] [blame] | 196 | done |
| 197 | |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 198 | ## ----------------------------------------------------------------------- |
| 199 | ## Intent: build multiple versions |
| 200 | ## ----------------------------------------------------------------------- |
Eric Ball | fc4ad7a | 2025-02-05 17:22:21 -0800 | [diff] [blame] | 201 | multiversion: $(venv-activate-script) Makefile | prep $(OTHER_REPO_DOCS) |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 202 | $(activate)\ |
| 203 | && sphinx-multiversion "$(SOURCEDIR)" "$(BUILDDIR)/multiversion" $(SPHINXOPTS) |
Zack Williams | 16042b6 | 2020-03-29 22:03:16 -0700 | [diff] [blame] | 204 | cp "$(SOURCEDIR)/_templates/meta_refresh.html" "$(BUILDDIR)/multiversion/index.html" |
Zack Williams | 88df474 | 2019-12-20 08:24:47 -0700 | [diff] [blame] | 205 | |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 206 | ## ----------------------------------------------------------------------- |
| 207 | ## Intent: used in sphinx-multiversion to properly link |
| 208 | ## ----------------------------------------------------------------------- |
Zack Williams | 16042b6 | 2020-03-29 22:03:16 -0700 | [diff] [blame] | 209 | prep: | $(OTHER_REPO_DOCS) $(STATIC_DOCS) |
Andy Bavier | 5dee6ae | 2020-01-29 16:03:40 -0700 | [diff] [blame] | 210 | |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 211 | ## ----------------------------------------------------------------------- |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 212 | ## Intent: Display makefile target help |
| 213 | ## ----------------------------------------------------------------------- |
Eric Ball | fc4ad7a | 2025-02-05 17:22:21 -0800 | [diff] [blame] | 214 | help-targets-sphinx : $(venv-activate-script) |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 215 | @ echo |
Joey Armstrong | 721519c | 2023-11-13 15:30:54 -0500 | [diff] [blame] | 216 | @echo '[HELP: Sphinx]' |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 217 | $(HIDE)$(activate) \ |
| 218 | && $(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
| 219 | |
| 220 | ## ----------------------------------------------------------------------- |
Joey Armstrong | 924f3cb | 2023-06-05 15:21:51 -0400 | [diff] [blame] | 221 | ## Intent: Display WARNINGS buried in sphinx output |
| 222 | ## ----------------------------------------------------------------------- |
| 223 | warnings-log := warnings.log |
Joey Armstrong | 4f93b76 | 2023-06-06 08:36:02 -0400 | [diff] [blame] | 224 | warnings: sterile |
Joey Armstrong | 924f3cb | 2023-06-05 15:21:51 -0400 | [diff] [blame] | 225 | $(MAKE) html 2>&1 \ |
| 226 | | sed -e 's@\([Ww][Aa][Rr][Nn][Ii][Nn][Gg]\)@\n\1@g' \ |
| 227 | > "$(warnings-log)" |
Joey Armstrong | 4f93b76 | 2023-06-06 08:36:02 -0400 | [diff] [blame] | 228 | grep 'WARNING' $(warnings-log) |
Joey Armstrong | 924f3cb | 2023-06-05 15:21:51 -0400 | [diff] [blame] | 229 | |
Joey Armstrong | 4f93b76 | 2023-06-06 08:36:02 -0400 | [diff] [blame] | 230 | ## ----------------------------------------------------------------------- |
| 231 | ## Intent: Summarize linkcheck failures |
| 232 | ## ----------------------------------------------------------------------- |
| 233 | .PHONY: broken-log |
| 234 | broken-log := broken.log |
| 235 | broken-log : sterile |
| 236 | $(MAKE) linkcheck 2>&1 | tee "$(broken-log)" |
| 237 | ! grep broken "$(broken-log)" |
| 238 | grep -i error _build/linkcheck/output.txt |
| 239 | |
| 240 | ## ----------------------------------------------------------------------- |
Joey Armstrong | e03bc60 | 2024-02-09 17:26:27 -0500 | [diff] [blame] | 241 | ## Intent: Summarize linkcheck failures |
| 242 | ## ----------------------------------------------------------------------- |
| 243 | .PHONY: lint-doc8-debug |
| 244 | lint-doc8-debug : sterile |
| 245 | $(HIDE) @echo "Searching for cryptic failures" |
| 246 | -grep -i 'X <' release_notes/voltha_2.12.rst | grep -v '`__' |
| 247 | |
| 248 | ## ----------------------------------------------------------------------- |
Joey Armstrong | 4f93b76 | 2023-06-06 08:36:02 -0400 | [diff] [blame] | 249 | ## Intent: |
| 250 | ## ----------------------------------------------------------------------- |
Joey Armstrong | 924f3cb | 2023-06-05 15:21:51 -0400 | [diff] [blame] | 251 | clean:: |
Joey Armstrong | 4f93b76 | 2023-06-06 08:36:02 -0400 | [diff] [blame] | 252 | $(RM) $(broken-log) |
Joey Armstrong | 924f3cb | 2023-06-05 15:21:51 -0400 | [diff] [blame] | 253 | $(RM) $(warnings-log) |
| 254 | |
Joey Armstrong | 4f93b76 | 2023-06-06 08:36:02 -0400 | [diff] [blame] | 255 | ## ----------------------------------------------------------------------- |
| 256 | ## Intent: |
| 257 | ## ----------------------------------------------------------------------- |
Joey Armstrong | 721519c | 2023-11-13 15:30:54 -0500 | [diff] [blame] | 258 | help :: help-targets-main |
| 259 | help-targets-main : |
| 260 | |
| 261 | @echo |
| 262 | @echo '[HELP]' |
| 263 | @printf ' %-30.30s %s\n' 'help' \ |
| 264 | 'Summary makefile target help' |
| 265 | @printf ' %-30.30s %s\n' 'help-verbose' \ |
| 266 | 'Extended makefile target help' |
| 267 | |
| 268 | @echo |
Joey Armstrong | 9f7c57c | 2024-05-03 18:29:30 -0400 | [diff] [blame] | 269 | @echo '[INIT]' |
Joey Armstrong | 721519c | 2023-11-13 15:30:54 -0500 | [diff] [blame] | 270 | @printf ' %-30.30s %s\n' 'init' \ |
| 271 | 'Alias for git-submodules' |
| 272 | @printf ' %-30.30s %s\n' 'git-submodules' \ |
| 273 | 'Checkout external dependent repositories' |
| 274 | |
| 275 | @echo |
| 276 | @echo '[TEST: Failures]' |
| 277 | @printf ' %-30.30s %s\n' 'broken' \ |
| 278 | 'Display broken URLs detected in linkcheck output' |
| 279 | @printf ' %-30.30s %s\n' 'warnings' \ |
| 280 | 'Display WARNING strings buried in sphinx output' |
| 281 | |
| 282 | ## ----------------------------------------------------------------------- |
| 283 | ## Intent: Checkout external repository dependencies |
| 284 | ## ----------------------------------------------------------------------- |
| 285 | init :: git-submodules |
| 286 | |
| 287 | git-submodules: |
| 288 | git submodule update --init --recursive |
Joey Armstrong | 924f3cb | 2023-06-05 15:21:51 -0400 | [diff] [blame] | 289 | |
| 290 | ## ----------------------------------------------------------------------- |
Joey Armstrong | 9f7c57c | 2024-05-03 18:29:30 -0400 | [diff] [blame] | 291 | ## Intent: Display make help footer |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 292 | ## ----------------------------------------------------------------------- |
Joey Armstrong | 449ce7a | 2023-07-18 18:32:24 -0400 | [diff] [blame] | 293 | include $(ONF_MAKEDIR)/help/trailer.mk |
Joey Armstrong | 36592e3 | 2022-11-28 09:00:28 -0500 | [diff] [blame] | 294 | |
| 295 | # [EOF] |