github.com/grafana/pyroscope@v1.18.0/docs/Makefile (about)

     1  .DEFAULT_GOAL: help
     2  
     3  # Adapted from https://www.thapaliya.com/en/writings/well-documented-makefiles/
     4  .PHONY: help
     5  help: ## Display this help.
     6  help:
     7  	@awk 'BEGIN {FS = ": ##"; printf "Usage:\n  make <target>\n\nTargets:\n"} /^[a-zA-Z0-9_\.\-\/%]+: ##/ { printf "  %-45s %s\n", $$1, $$2 }' $(MAKEFILE_LIST)
     8  
     9  include docs.mk
    10  
    11  .PHONY: test
    12  test:
    13  	docker run -v $(CURDIR)/sources:/hugo/content/docs/pyroscope/latest -e HUGO_REFLINKSERRORLEVEL=ERROR --rm grafana/docs-base:latest /bin/bash -c 'exec make hugo'