Explain how to pass arguments of a command to a dependency (#1254)

This commit is contained in:
Damian Kula 2022-06-28 09:32:05 +02:00 committed by GitHub
parent dbe05d2d23
commit 0b750b6cd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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