summaryrefslogtreecommitdiff
path: root/lib/spack/docs/environments.rst
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2023-01-19 14:58:34 +0100
committerGitHub <noreply@github.com>2023-01-19 14:58:34 +0100
commita357a39963b5c9161b85f933f4001de8b951b99a (patch)
tree2071f645bdc7e8aa185674e456f03133d2b0473a /lib/spack/docs/environments.rst
parenta7613407df64b66ea2a3c5e5a0ff4749799ecea2 (diff)
downloadspack-a357a39963b5c9161b85f933f4001de8b951b99a.tar.gz
spack-a357a39963b5c9161b85f933f4001de8b951b99a.tar.bz2
spack-a357a39963b5c9161b85f933f4001de8b951b99a.tar.xz
spack-a357a39963b5c9161b85f933f4001de8b951b99a.zip
depfile: --make-target-prefix -> --make-prefix (#35009)
Since SPACK_PACKAGE_IDS is now also "namespaced" with <prefix>, it makes more sense to call the flag `--make-prefix` and alias the old flag `--make-target-prefix` to it.
Diffstat (limited to 'lib/spack/docs/environments.rst')
-rw-r--r--lib/spack/docs/environments.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/spack/docs/environments.rst b/lib/spack/docs/environments.rst
index 4b9a3cd818..09d8f07af1 100644
--- a/lib/spack/docs/environments.rst
+++ b/lib/spack/docs/environments.rst
@@ -1039,7 +1039,7 @@ gets installed and is available for use in the ``env`` target.
$(SPACK) -e . concretize -f
env.mk: spack.lock
- $(SPACK) -e . env depfile -o $@ --make-target-prefix spack
+ $(SPACK) -e . env depfile -o $@ --make-prefix spack
env: spack/env
$(info Environment installed!)
@@ -1062,9 +1062,9 @@ the include is conditional.
.. note::
When including generated ``Makefile``\s, it is important to use
- the ``--make-target-prefix`` flag and use the non-phony target
- ``<target-prefix>/env`` as prerequisite, instead of the phony target
- ``<target-prefix>/all``.
+ the ``--make-prefix`` flag and use the non-phony target
+ ``<prefix>/env`` as prerequisite, instead of the phony target
+ ``<prefix>/all``.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Building a subset of the environment
@@ -1105,7 +1105,7 @@ associated ``Makefile`` with a prefix ``example``:
.. code:: console
- $ spack env depfile -o env.mk --make-target-prefix example
+ $ spack env depfile -o env.mk --make-prefix example
And we now include it in a different ``Makefile``, in which we create a target
``example/push/%`` with ``%`` referring to a package identifier. This target