mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
GNUmakefile: add support for 'CARGO_TARGET_DIR' enviroment variable
This commit is contained in:
committed by
Dorian Péron
parent
d31a19f2c4
commit
7d46a35e02
@@ -41,7 +41,11 @@ PROG_PREFIX ?=
|
||||
# This won't support any directory with spaces in its name, but you can just
|
||||
# make a symlink without spaces that points to the directory.
|
||||
BASEDIR ?= $(shell pwd)
|
||||
ifdef CARGO_TARGET_DIR
|
||||
BUILDDIR := $(CARGO_TARGET_DIR)/${PROFILE}
|
||||
else
|
||||
BUILDDIR := $(BASEDIR)/target/${PROFILE}
|
||||
endif
|
||||
PKG_BUILDDIR := $(BUILDDIR)/deps
|
||||
DOCSDIR := $(BASEDIR)/docs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user