From 0b750b6cd720b11fde0425490b6ace81b644bde9 Mon Sep 17 00:00:00 2001 From: Damian Kula Date: Tue, 28 Jun 2022 09:32:05 +0200 Subject: [PATCH] Explain how to pass arguments of a command to a dependency (#1254) --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 8e3d7d6..152dbfa 100644 --- a/README.md +++ b/README.md @@ -1362,6 +1362,16 @@ build target: cd {{target}} && make ``` +A command's arguments can be passed to dependency by putting the dependency in parentheses along with the arguments: + +```make +build target: + @echo "Building {{target}}…" + +push target: (build target) + @echo 'Pushing {{target}}…' +``` + Parameters may have default values: ```make