diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2022-08-13 16:10:08 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2022-08-14 02:17:39 -0300 |
commit | 891fd0270154ba1992e30d3e59c1daf990bfb604 (patch) | |
tree | 76fd09aa586593d61a6fa28200049d0862d415bb | |
parent | build: rename DOCDIR to docdir (diff) | |
download | firejail-891fd0270154ba1992e30d3e59c1daf990bfb604.tar.gz firejail-891fd0270154ba1992e30d3e59c1daf990bfb604.tar.zst firejail-891fd0270154ba1992e30d3e59c1daf990bfb604.zip |
build: add new TARNAME variable
That expands to `@PACKAGE_TARNAME@`, similar to the existing
PACKAGE_TARNAME variable.
To make it easier to use (and read) and to be more consistent with the
surrounding variables (NAME and VERSION).
Note that the original PACKAGE_TARNAME is still needed, as by default
(on autoconf v2.69) `docdir=@docdir@` in config.mk.in expands to the
following in config.mk:
docdir=${datarootdir}/doc/${PACKAGE_TARNAME}
-rw-r--r-- | config.mk.in | 3 | ||||
-rw-r--r-- | config.sh.in | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/config.mk.in b/config.mk.in index 7eed050ca..9973b7eaa 100644 --- a/config.mk.in +++ b/config.mk.in | |||
@@ -8,7 +8,8 @@ | |||
8 | # first target encountered). | 8 | # first target encountered). |
9 | 9 | ||
10 | NAME=@PACKAGE_NAME@ | 10 | NAME=@PACKAGE_NAME@ |
11 | PACKAGE_TARNAME=@PACKAGE_TARNAME@ | 11 | TARNAME=@PACKAGE_TARNAME@ |
12 | PACKAGE_TARNAME=@PACKAGE_TARNAME@ # needed by docdir | ||
12 | VERSION=@PACKAGE_VERSION@ | 13 | VERSION=@PACKAGE_VERSION@ |
13 | 14 | ||
14 | prefix=@prefix@ | 15 | prefix=@prefix@ |
diff --git a/config.sh.in b/config.sh.in index 155f2158e..0a91c68f2 100644 --- a/config.sh.in +++ b/config.sh.in | |||
@@ -4,4 +4,5 @@ | |||
4 | # shellcheck disable=SC2034 | 4 | # shellcheck disable=SC2034 |
5 | 5 | ||
6 | NAME="@PACKAGE_NAME@" | 6 | NAME="@PACKAGE_NAME@" |
7 | TARNAME="@PACKAGE_TARNAME@" | ||
7 | VERSION="@PACKAGE_VERSION@" | 8 | VERSION="@PACKAGE_VERSION@" |