Skip to content

Commit b9b9655

Browse files
oech3Ecordonnier
andauthored
GNUmakefile: Prepend PROG_PREFIX to LIBSTDBUF_DIR too (#9068)
* GNUmakefile: Append PROG_PREFIX to LIBSTDBUF_DIR too * GNUmakefile: FIx woording Co-authored-by: Etienne Cordonnier <[email protected]> --------- Co-authored-by: Etienne Cordonnier <[email protected]>
1 parent 87ba3af commit b9b9655

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/CICD.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -300,22 +300,22 @@ jobs:
300300
run: make nextest PROFILE=ci CARGOFLAGS="--hide-progress-bar"
301301
env:
302302
RUST_BACKTRACE: "1"
303-
304-
- name: "`make install PROFILE=release-fast COMPLETIONS=n MANPAGES=n LOCALES=n`"
303+
- name: "`make install PROG_PREFIX=uu- PROFILE=release-fast COMPLETIONS=n MANPAGES=n LOCALES=n`"
305304
shell: bash
306305
run: |
307306
set -x
308-
DESTDIR=/tmp/ make PROFILE=release-fast COMPLETIONS=n MANPAGES=n LOCALES=n install
307+
DESTDIR=/tmp/ make install PROG_PREFIX=uu- PROFILE=release-fast COMPLETIONS=n MANPAGES=n LOCALES=n
309308
# Check that utils are built with given profile
310309
./target/release-fast/true
311-
# Check that the utils are present
312-
test -f /tmp/usr/local/bin/tty
310+
# Check that the progs have prefix
311+
test -f /tmp/usr/local/bin/uu-tty
312+
test -f /tmp/usr/local/libexec/uu-coreutils/libstdbuf.*
313313
# Check that the manpage is not present
314-
! test -f /tmp/usr/local/share/man/man1/whoami.1
314+
! test -f /tmp/usr/local/share/man/man1/uu-whoami.1
315315
# Check that the completion is not present
316-
! test -f /tmp/usr/local/share/zsh/site-functions/_install
317-
! test -f /tmp/usr/local/share/bash-completion/completions/head.bash
318-
! test -f /tmp/usr/local/share/fish/vendor_completions.d/cat.fish
316+
! test -f /tmp/usr/local/share/zsh/site-functions/_uu-install
317+
! test -f /tmp/usr/local/share/bash-completion/completions/uu-head.bash
318+
! test -f /tmp/usr/local/share/fish/vendor_completions.d/uu-cat.fish
319319
env:
320320
RUST_BACKTRACE: "1"
321321
- name: "`make install`"

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 prepended 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)