Skip to content

Commit

Permalink
build: add new TARNAME variable
Browse files Browse the repository at this point in the history
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}
  • Loading branch information
kmk3 committed Aug 14, 2022
1 parent 9a45c34 commit 891fd02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.mk.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
# first target encountered).

NAME=@PACKAGE_NAME@
PACKAGE_TARNAME=@PACKAGE_TARNAME@
TARNAME=@PACKAGE_TARNAME@
PACKAGE_TARNAME=@PACKAGE_TARNAME@ # needed by docdir
VERSION=@PACKAGE_VERSION@

prefix=@prefix@
Expand Down
1 change: 1 addition & 0 deletions config.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
# shellcheck disable=SC2034

NAME="@PACKAGE_NAME@"
TARNAME="@PACKAGE_TARNAME@"
VERSION="@PACKAGE_VERSION@"

0 comments on commit 891fd02

Please sign in to comment.