task.mk/docs/examples/recipe-help/Makefile

23 lines
378 B
Makefile
Raw Normal View History

2022-09-24 17:53:30 -05:00
.PHONY: deps-only
deps-only: foo ## a task/target with dependencies
2022-09-24 17:53:30 -05:00
.PHONY: foo
foo: $(wildcard *) ## a dummy rule that depends on the local files
2022-09-24 17:53:30 -05:00
@echo 'this is a dummy rule'
# bar but no docstring
.PHONY: bar
bar:
@echo 'some rule with no help string'
define USAGE
{a.header}usage:{a.end}
make <recipe>
make help <recipe>
endef
.DEFAULT_GOAL = help
include .task.mk
2022-09-24 17:53:30 -05:00