mirror of
https://github.com/daylinmorgan/task.mk.git
synced 2024-12-23 02:10:45 -06:00
25 lines
434 B
Makefile
25 lines
434 B
Makefile
|
## deps-only | a task/target with dependencies
|
||
|
.PHONY: deps-only
|
||
|
deps-only: foo
|
||
|
|
||
|
## foo | a dummy rule that depends on the local files
|
||
|
.PHONY: foo
|
||
|
foo: $(wildcard *)
|
||
|
@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 $(shell git rev-parse --show-toplevel)/task.mk
|
||
|
|