Skip to content

Commit 22d3655

Browse files
committed
GNUmakefile: Append PROG_PREFIX to LIBSTDBUF_DIR too
1 parent 363bda0 commit 22d3655

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

GNUmakefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,20 @@ CARGO ?= cargo
2727
CARGOFLAGS ?=
2828
RUSTC_ARCH ?= # should be empty except for cross-build, not --target $(shell rustc --print host-tuple)
2929

30+
#prefix appended to all binaries and library dir
31+
PROG_PREFIX ?=
32+
3033
# Install directories
3134
PREFIX ?= /usr/local
3235
DESTDIR ?=
3336
BINDIR ?= $(PREFIX)/bin
3437
DATAROOTDIR ?= $(PREFIX)/share
35-
LIBSTDBUF_DIR ?= $(PREFIX)/libexec/coreutils
38+
LIBSTDBUF_DIR ?= $(PREFIX)/libexec/$(PROG_PREFIX)coreutils
3639
# Export variable so that it is used during the build
3740
export LIBSTDBUF_DIR
3841

3942
INSTALLDIR_BIN=$(DESTDIR)$(BINDIR)
4043

41-
#prefix to apply to coreutils binary and all tool binaries
42-
PROG_PREFIX ?=
43-
4444
# This won't support any directory with spaces in its name, but you can just
4545
# make a symlink without spaces that points to the directory.
4646
BASEDIR ?= $(shell pwd)

0 commit comments

Comments
 (0)