mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
GNUmakefile: add support for 'CARGO_TARGET_DIR' enviroment variable
This commit is contained in:
parent
d31a19f2c4
commit
7d46a35e02
1 changed files with 4 additions and 0 deletions
|
@ -41,7 +41,11 @@ PROG_PREFIX ?=
|
||||||
# This won't support any directory with spaces in its name, but you can just
|
# 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.
|
# make a symlink without spaces that points to the directory.
|
||||||
BASEDIR ?= $(shell pwd)
|
BASEDIR ?= $(shell pwd)
|
||||||
|
ifdef CARGO_TARGET_DIR
|
||||||
|
BUILDDIR := $(CARGO_TARGET_DIR)/${PROFILE}
|
||||||
|
else
|
||||||
BUILDDIR := $(BASEDIR)/target/${PROFILE}
|
BUILDDIR := $(BASEDIR)/target/${PROFILE}
|
||||||
|
endif
|
||||||
PKG_BUILDDIR := $(BUILDDIR)/deps
|
PKG_BUILDDIR := $(BUILDDIR)/deps
|
||||||
DOCSDIR := $(BASEDIR)/docs
|
DOCSDIR := $(BASEDIR)/docs
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue