workshops/slides/makefiles/examples/check

9 lines
141 B
Plaintext
Raw Normal View History

2024-11-13 15:06:46 +00:00
CHECKER = command -v
.PHONY: check
check:
$(CHECKER) fortune >/dev/null
$(CHECKER) cowsay >/dev/null
file: | check
fortune | cowsay > $@