.PHONY: test-task another-task help cd custom-exe print-args test
test-task:
@echo "Test task executed successfully"
test:
@echo "Make test task executed successfully"
another-task:
@echo "Another task executed successfully"
print-arg-task:
@echo "Argument is: $(ARG)"
print-args:
@echo "Arguments passed to print-args: $(subst ',,$(ARGS))"
cd:
@echo "This task is shadowed by the cd shell builtin"
custom-exe:
@echo "This task is shadowed by a PATH executable"
help:
@echo "Available tasks:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'