show generated help message:
$ make
Usage: make <target>
Available targets are:
all Install and build
build Build package / X_VERSION= X_SCOPE=
deps Install dependencies
help Show help
show error if envvar is not provided:
$ make all
# deps
echo "installing dependencies ..."
installing dependencies ...
# deps: done
Makefile:32: *** env X_VERSION not defined. Stop
successful invocation:
$ X_VERSION=v1.2.3 X_SCOPE=private make all
# deps
echo "installing dependencies ..."
installing dependencies ...
# deps: done
# build
echo "building v1.2.3 for private scope ..."
building v1.2.3 for private scope ...
# build: done
# all: done