| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 1 | # Copyright The OpenTelemetry Authors |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 2 | # SPDX-License-Identifier: Apache-2.0 |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 3 | |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 4 | TOOLS_MOD_DIR := ./internal/tools |
| 5 | |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 6 | ALL_DOCS := $(shell find . -name '*.md' -type f | sort) |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 7 | ALL_GO_MOD_DIRS := $(shell find . -type f -name 'go.mod' -exec dirname {} \; | sort) |
| 8 | OTEL_GO_MOD_DIRS := $(filter-out $(TOOLS_MOD_DIR), $(ALL_GO_MOD_DIRS)) |
| 9 | ALL_COVERAGE_MOD_DIRS := $(shell find . -type f -name 'go.mod' -exec dirname {} \; | grep -E -v '^./example|^$(TOOLS_MOD_DIR)' | sort) |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 10 | |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 11 | GO = go |
| 12 | TIMEOUT = 60 |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 13 | |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 14 | # User to run as in docker images. |
| 15 | DOCKER_USER=$(shell id -u):$(shell id -g) |
| 16 | DEPENDENCIES_DOCKERFILE=./dependencies.Dockerfile |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 17 | |
| 18 | .DEFAULT_GOAL := precommit |
| 19 | |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 20 | .PHONY: precommit ci |
| 21 | precommit: generate toolchain-check license-check misspell go-mod-tidy golangci-lint-fix verify-readmes verify-mods test-default |
| 22 | ci: generate toolchain-check license-check lint vanity-import-check verify-readmes verify-mods build test-default check-clean-work-tree test-coverage |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 23 | |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 24 | # Tools |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 25 | |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 26 | TOOLS = $(CURDIR)/.tools |
| 27 | |
| 28 | $(TOOLS): |
| 29 | @mkdir -p $@ |
| 30 | $(TOOLS)/%: $(TOOLS_MOD_DIR)/go.mod | $(TOOLS) |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 31 | cd $(TOOLS_MOD_DIR) && \ |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 32 | $(GO) build -o $@ $(PACKAGE) |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 33 | |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 34 | MULTIMOD = $(TOOLS)/multimod |
| 35 | $(TOOLS)/multimod: PACKAGE=go.opentelemetry.io/build-tools/multimod |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 36 | |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 37 | SEMCONVGEN = $(TOOLS)/semconvgen |
| 38 | $(TOOLS)/semconvgen: PACKAGE=go.opentelemetry.io/build-tools/semconvgen |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 39 | |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 40 | CROSSLINK = $(TOOLS)/crosslink |
| 41 | $(TOOLS)/crosslink: PACKAGE=go.opentelemetry.io/build-tools/crosslink |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 42 | |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 43 | SEMCONVKIT = $(TOOLS)/semconvkit |
| 44 | $(TOOLS)/semconvkit: PACKAGE=go.opentelemetry.io/otel/$(TOOLS_MOD_DIR)/semconvkit |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 45 | |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 46 | VERIFYREADMES = $(TOOLS)/verifyreadmes |
| 47 | $(TOOLS)/verifyreadmes: PACKAGE=go.opentelemetry.io/otel/$(TOOLS_MOD_DIR)/verifyreadmes |
| 48 | |
| 49 | GOLANGCI_LINT = $(TOOLS)/golangci-lint |
| 50 | $(TOOLS)/golangci-lint: PACKAGE=github.com/golangci/golangci-lint/v2/cmd/golangci-lint |
| 51 | |
| 52 | MISSPELL = $(TOOLS)/misspell |
| 53 | $(TOOLS)/misspell: PACKAGE=github.com/client9/misspell/cmd/misspell |
| 54 | |
| 55 | GOCOVMERGE = $(TOOLS)/gocovmerge |
| 56 | $(TOOLS)/gocovmerge: PACKAGE=github.com/wadey/gocovmerge |
| 57 | |
| 58 | STRINGER = $(TOOLS)/stringer |
| 59 | $(TOOLS)/stringer: PACKAGE=golang.org/x/tools/cmd/stringer |
| 60 | |
| 61 | PORTO = $(TOOLS)/porto |
| 62 | $(TOOLS)/porto: PACKAGE=github.com/jcchavezs/porto/cmd/porto |
| 63 | |
| 64 | GOTMPL = $(TOOLS)/gotmpl |
| 65 | $(GOTMPL): PACKAGE=go.opentelemetry.io/build-tools/gotmpl |
| 66 | |
| 67 | GORELEASE = $(TOOLS)/gorelease |
| 68 | $(GORELEASE): PACKAGE=golang.org/x/exp/cmd/gorelease |
| 69 | |
| 70 | GOVULNCHECK = $(TOOLS)/govulncheck |
| 71 | $(TOOLS)/govulncheck: PACKAGE=golang.org/x/vuln/cmd/govulncheck |
| 72 | |
| 73 | .PHONY: tools |
| 74 | tools: $(CROSSLINK) $(GOLANGCI_LINT) $(MISSPELL) $(GOCOVMERGE) $(STRINGER) $(PORTO) $(SEMCONVGEN) $(VERIFYREADMES) $(MULTIMOD) $(SEMCONVKIT) $(GOTMPL) $(GORELEASE) |
| 75 | |
| 76 | # Virtualized python tools via docker |
| 77 | |
| 78 | # The directory where the virtual environment is created. |
| 79 | VENVDIR := venv |
| 80 | |
| 81 | # The directory where the python tools are installed. |
| 82 | PYTOOLS := $(VENVDIR)/bin |
| 83 | |
| 84 | # The pip executable in the virtual environment. |
| 85 | PIP := $(PYTOOLS)/pip |
| 86 | |
| 87 | # The directory in the docker image where the current directory is mounted. |
| 88 | WORKDIR := /workdir |
| 89 | |
| 90 | # The python image to use for the virtual environment. |
| 91 | PYTHONIMAGE := $(shell awk '$$4=="python" {print $$2}' $(DEPENDENCIES_DOCKERFILE)) |
| 92 | |
| 93 | # Run the python image with the current directory mounted. |
| 94 | DOCKERPY := docker run --rm -u $(DOCKER_USER) -v "$(CURDIR):$(WORKDIR)" -w $(WORKDIR) $(PYTHONIMAGE) |
| 95 | |
| 96 | # Create a virtual environment for Python tools. |
| 97 | $(PYTOOLS): |
| 98 | # The `--upgrade` flag is needed to ensure that the virtual environment is |
| 99 | # created with the latest pip version. |
| 100 | @$(DOCKERPY) bash -c "python3 -m venv $(VENVDIR) && $(PIP) install --upgrade --cache-dir=$(WORKDIR)/.cache/pip pip" |
| 101 | |
| 102 | # Install python packages into the virtual environment. |
| 103 | $(PYTOOLS)/%: $(PYTOOLS) |
| 104 | @$(DOCKERPY) $(PIP) install --cache-dir=$(WORKDIR)/.cache/pip -r requirements.txt |
| 105 | |
| 106 | CODESPELL = $(PYTOOLS)/codespell |
| 107 | $(CODESPELL): PACKAGE=codespell |
| 108 | |
| 109 | # Generate |
| 110 | |
| 111 | .PHONY: generate |
| 112 | generate: go-generate vanity-import-fix |
| 113 | |
| 114 | .PHONY: go-generate |
| 115 | go-generate: $(OTEL_GO_MOD_DIRS:%=go-generate/%) |
| 116 | go-generate/%: DIR=$* |
| 117 | go-generate/%: $(STRINGER) $(GOTMPL) |
| 118 | @echo "$(GO) generate $(DIR)/..." \ |
| 119 | && cd $(DIR) \ |
| 120 | && PATH="$(TOOLS):$${PATH}" $(GO) generate ./... |
| 121 | |
| 122 | .PHONY: vanity-import-fix |
| 123 | vanity-import-fix: $(PORTO) |
| 124 | @$(PORTO) --include-internal -w . |
| 125 | |
| 126 | # Generate go.work file for local development. |
| 127 | .PHONY: go-work |
| 128 | go-work: $(CROSSLINK) |
| 129 | $(CROSSLINK) work --root=$(shell pwd) --go=1.22.7 |
| 130 | |
| 131 | # Build |
| 132 | |
| 133 | .PHONY: build |
| 134 | |
| 135 | build: $(OTEL_GO_MOD_DIRS:%=build/%) $(OTEL_GO_MOD_DIRS:%=build-tests/%) |
| 136 | build/%: DIR=$* |
| 137 | build/%: |
| 138 | @echo "$(GO) build $(DIR)/..." \ |
| 139 | && cd $(DIR) \ |
| 140 | && $(GO) build ./... |
| 141 | |
| 142 | build-tests/%: DIR=$* |
| 143 | build-tests/%: |
| 144 | @echo "$(GO) build tests $(DIR)/..." \ |
| 145 | && cd $(DIR) \ |
| 146 | && $(GO) list ./... \ |
| 147 | | grep -v third_party \ |
| 148 | | xargs $(GO) test -vet=off -run xxxxxMatchNothingxxxxx >/dev/null |
| 149 | |
| 150 | # Tests |
| 151 | |
| 152 | TEST_TARGETS := test-default test-bench test-short test-verbose test-race test-concurrent-safe |
| 153 | .PHONY: $(TEST_TARGETS) test |
| 154 | test-default test-race: ARGS=-race |
| 155 | test-bench: ARGS=-run=xxxxxMatchNothingxxxxx -test.benchtime=1ms -bench=. |
| 156 | test-short: ARGS=-short |
| 157 | test-verbose: ARGS=-v -race |
| 158 | test-concurrent-safe: ARGS=-run=ConcurrentSafe -count=100 -race |
| 159 | test-concurrent-safe: TIMEOUT=120 |
| 160 | $(TEST_TARGETS): test |
| 161 | test: $(OTEL_GO_MOD_DIRS:%=test/%) |
| 162 | test/%: DIR=$* |
| 163 | test/%: |
| 164 | @echo "$(GO) test -timeout $(TIMEOUT)s $(ARGS) $(DIR)/..." \ |
| 165 | && cd $(DIR) \ |
| 166 | && $(GO) list ./... \ |
| 167 | | grep -v third_party \ |
| 168 | | xargs $(GO) test -timeout $(TIMEOUT)s $(ARGS) |
| 169 | |
| 170 | COVERAGE_MODE = atomic |
| 171 | COVERAGE_PROFILE = coverage.out |
| 172 | .PHONY: test-coverage |
| 173 | test-coverage: $(GOCOVMERGE) |
| 174 | @set -e; \ |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 175 | printf "" > coverage.txt; \ |
| 176 | for dir in $(ALL_COVERAGE_MOD_DIRS); do \ |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 177 | echo "$(GO) test -coverpkg=go.opentelemetry.io/otel/... -covermode=$(COVERAGE_MODE) -coverprofile="$(COVERAGE_PROFILE)" $${dir}/..."; \ |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 178 | (cd "$${dir}" && \ |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 179 | $(GO) list ./... \ |
| 180 | | grep -v third_party \ |
| 181 | | grep -v 'semconv/v.*' \ |
| 182 | | xargs $(GO) test -coverpkg=./... -covermode=$(COVERAGE_MODE) -coverprofile="$(COVERAGE_PROFILE)" && \ |
| 183 | $(GO) tool cover -html=coverage.out -o coverage.html); \ |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 184 | done; \ |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 185 | $(GOCOVMERGE) $$(find . -name coverage.out) > coverage.txt |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 186 | |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 187 | .PHONY: benchmark |
| 188 | benchmark: $(OTEL_GO_MOD_DIRS:%=benchmark/%) |
| 189 | benchmark/%: |
| 190 | @echo "$(GO) test -run=xxxxxMatchNothingxxxxx -bench=. $*..." \ |
| 191 | && cd $* \ |
| 192 | && $(GO) list ./... \ |
| 193 | | grep -v third_party \ |
| 194 | | xargs $(GO) test -run=xxxxxMatchNothingxxxxx -bench=. |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 195 | |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 196 | .PHONY: golangci-lint golangci-lint-fix |
| 197 | golangci-lint-fix: ARGS=--fix |
| 198 | golangci-lint-fix: golangci-lint |
| 199 | golangci-lint: $(OTEL_GO_MOD_DIRS:%=golangci-lint/%) |
| 200 | golangci-lint/%: DIR=$* |
| 201 | golangci-lint/%: $(GOLANGCI_LINT) |
| 202 | @echo 'golangci-lint $(if $(ARGS),$(ARGS) ,)$(DIR)' \ |
| 203 | && cd $(DIR) \ |
| 204 | && $(GOLANGCI_LINT) run --allow-serial-runners $(ARGS) |
| 205 | |
| 206 | .PHONY: crosslink |
| 207 | crosslink: $(CROSSLINK) |
| 208 | @echo "Updating intra-repository dependencies in all go modules" \ |
| 209 | && $(CROSSLINK) --root=$(shell pwd) --prune |
| 210 | |
| 211 | .PHONY: go-mod-tidy |
| 212 | go-mod-tidy: $(ALL_GO_MOD_DIRS:%=go-mod-tidy/%) |
| 213 | go-mod-tidy/%: DIR=$* |
| 214 | go-mod-tidy/%: crosslink |
| 215 | @echo "$(GO) mod tidy in $(DIR)" \ |
| 216 | && cd $(DIR) \ |
| 217 | && $(GO) mod tidy -compat=1.21 |
| 218 | |
| 219 | .PHONY: lint |
| 220 | lint: misspell go-mod-tidy golangci-lint govulncheck |
| 221 | |
| 222 | .PHONY: vanity-import-check |
| 223 | vanity-import-check: $(PORTO) |
| 224 | @$(PORTO) --include-internal -l . || ( echo "(run: make vanity-import-fix)"; exit 1 ) |
| 225 | |
| 226 | .PHONY: misspell |
| 227 | misspell: $(MISSPELL) |
| 228 | @$(MISSPELL) -w $(ALL_DOCS) |
| 229 | |
| 230 | .PHONY: govulncheck |
| 231 | govulncheck: $(OTEL_GO_MOD_DIRS:%=govulncheck/%) |
| 232 | govulncheck/%: DIR=$* |
| 233 | govulncheck/%: $(GOVULNCHECK) |
| 234 | @echo "govulncheck ./... in $(DIR)" \ |
| 235 | && cd $(DIR) \ |
| 236 | && $(GOVULNCHECK) ./... |
| 237 | |
| 238 | .PHONY: codespell |
| 239 | codespell: $(CODESPELL) |
| 240 | @$(DOCKERPY) $(CODESPELL) |
| 241 | |
| 242 | .PHONY: toolchain-check |
| 243 | toolchain-check: |
| 244 | @toolchainRes=$$(for f in $(ALL_GO_MOD_DIRS); do \ |
| 245 | awk '/^toolchain/ { found=1; next } END { if (found) print FILENAME }' $$f/go.mod; \ |
| 246 | done); \ |
| 247 | if [ -n "$${toolchainRes}" ]; then \ |
| 248 | echo "toolchain checking failed:"; echo "$${toolchainRes}"; \ |
| 249 | exit 1; \ |
| 250 | fi |
| 251 | |
| 252 | .PHONY: license-check |
| 253 | license-check: |
| 254 | @licRes=$$(for f in $$(find . -type f \( -iname '*.go' -o -iname '*.sh' \) ! -path '**/third_party/*' ! -path './.git/*' ) ; do \ |
| 255 | awk '/Copyright The OpenTelemetry Authors|generated|GENERATED/ && NR<=4 { found=1; next } END { if (!found) print FILENAME }' $$f; \ |
| 256 | done); \ |
| 257 | if [ -n "$${licRes}" ]; then \ |
| 258 | echo "license header checking failed:"; echo "$${licRes}"; \ |
| 259 | exit 1; \ |
| 260 | fi |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 261 | |
| 262 | .PHONY: check-clean-work-tree |
| 263 | check-clean-work-tree: |
| 264 | @if ! git diff --quiet; then \ |
| 265 | echo; \ |
| 266 | echo 'Working tree is not clean, did you forget to run "make precommit"?'; \ |
| 267 | echo; \ |
| 268 | git status; \ |
| 269 | exit 1; \ |
| 270 | fi |
| 271 | |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 272 | # The weaver docker image to use for semconv-generate. |
| 273 | WEAVER_IMAGE := $(shell awk '$$4=="weaver" {print $$2}' $(DEPENDENCIES_DOCKERFILE)) |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 274 | |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 275 | SEMCONVPKG ?= "semconv/" |
| 276 | .PHONY: semconv-generate |
| 277 | semconv-generate: $(SEMCONVKIT) |
| 278 | [ "$(TAG)" ] || ( echo "TAG unset: missing opentelemetry semantic-conventions tag"; exit 1 ) |
| 279 | # Ensure the target directory for source code is available. |
| 280 | mkdir -p $(PWD)/$(SEMCONVPKG)/${TAG} |
| 281 | # Note: We mount a home directory for downloading/storing the semconv repository. |
| 282 | # Weaver will automatically clean the cache when finished, but the directories will remain. |
| 283 | mkdir -p ~/.weaver |
| 284 | docker run --rm \ |
| 285 | -u $(DOCKER_USER) \ |
| 286 | --env HOME=/tmp/weaver \ |
| 287 | --mount 'type=bind,source=$(PWD)/semconv,target=/home/weaver/templates/registry/go,readonly' \ |
| 288 | --mount 'type=bind,source=$(PWD)/semconv/${TAG},target=/home/weaver/target' \ |
| 289 | --mount 'type=bind,source=$(HOME)/.weaver,target=/tmp/weaver/.weaver' \ |
| 290 | $(WEAVER_IMAGE) registry generate \ |
| 291 | --registry=https://github.com/open-telemetry/semantic-conventions/archive/refs/tags/$(TAG).zip[model] \ |
| 292 | --templates=/home/weaver/templates \ |
| 293 | --param tag=$(TAG) \ |
| 294 | go \ |
| 295 | /home/weaver/target |
| 296 | $(SEMCONVKIT) -semconv "$(SEMCONVPKG)" -tag "$(TAG)" |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 297 | |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 298 | .PHONY: gorelease |
| 299 | gorelease: $(OTEL_GO_MOD_DIRS:%=gorelease/%) |
| 300 | gorelease/%: DIR=$* |
| 301 | gorelease/%:| $(GORELEASE) |
| 302 | @echo "gorelease in $(DIR):" \ |
| 303 | && cd $(DIR) \ |
| 304 | && $(GORELEASE) \ |
| 305 | || echo "" |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 306 | |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 307 | .PHONY: verify-mods |
| 308 | verify-mods: $(MULTIMOD) |
| 309 | $(MULTIMOD) verify |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 310 | |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 311 | .PHONY: prerelease |
| 312 | prerelease: verify-mods |
| 313 | @[ "${MODSET}" ] || ( echo ">> env var MODSET is not set"; exit 1 ) |
| 314 | $(MULTIMOD) prerelease -m ${MODSET} |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 315 | |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 316 | COMMIT ?= "HEAD" |
| 317 | .PHONY: add-tags |
| 318 | add-tags: verify-mods |
| 319 | @[ "${MODSET}" ] || ( echo ">> env var MODSET is not set"; exit 1 ) |
| 320 | $(MULTIMOD) tag -m ${MODSET} -c ${COMMIT} |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 321 | |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 322 | MARKDOWNIMAGE := $(shell awk '$$4=="markdown" {print $$2}' $(DEPENDENCIES_DOCKERFILE)) |
| 323 | .PHONY: lint-markdown |
| 324 | lint-markdown: |
| 325 | docker run --rm -u $(DOCKER_USER) -v "$(CURDIR):$(WORKDIR)" $(MARKDOWNIMAGE) -c $(WORKDIR)/.markdownlint.yaml $(WORKDIR)/**/*.md |
| serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame] | 326 | |
| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 327 | .PHONY: verify-readmes |
| 328 | verify-readmes: $(VERIFYREADMES) |
| 329 | $(VERIFYREADMES) |