|
|
|
|
|
by nrclark
765 days ago
|
|
----
fetch PACKAGE VER:
@echo fetching {{PACKAGE}} at version {{VER}}
----
$ just fetch foo 1.2.3
Here is the Make equivalent, with equivalent error-checking ----
fetch:
$(if $(PACKAGE),,$(error PACKAGE was not set))
$(if $(VERSION),,$(error VERSION was not set))
@echo fetching $(PACKAGE) at $(VERSION)
----
$ make fetch PACKAGE=foo VERSION=1.2.3
I agree that the `just` version is a little neater / tidier. But it's not like Make can't do the same thing. And Make is a much more powerful tool. |
|