summaryrefslogtreecommitdiff
path: root/usr/src/tools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/tools/Makefile')
-rw-r--r--usr/src/tools/Makefile22
1 files changed, 17 insertions, 5 deletions
diff --git a/usr/src/tools/Makefile b/usr/src/tools/Makefile
index 071b75a47f..0333e94177 100644
--- a/usr/src/tools/Makefile
+++ b/usr/src/tools/Makefile
@@ -25,6 +25,7 @@
# Copyright 2016 Toomas Soome <tsoome@me.com>
# Copyright (c) 2016, Chris Fraire <cfraire@me.com>.
# Copyright (c) 2019, Joyent, Inc.
+# Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
#
include ../Makefile.master
@@ -106,10 +107,6 @@ ROOTDIRS= \
$(ROOTONBLD)/lib/$(MACH) \
$(ROOTONBLD)/lib/$(MACH)/64 \
$(ROOTONBLD)/lib/perl \
- $(ROOTONBLD)/lib/python$(PYTHON_VERSION) \
- $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld \
- $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld/Checks \
- $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld/Scm \
$(ROOTONBLD)/env \
$(ROOTONBLD)/etc \
$(ROOTONBLD)/etc/exception_lists \
@@ -117,6 +114,21 @@ ROOTDIRS= \
$(ROOTONBLD)/man \
$(ROOTONBLD)/man/man1onbld
+$(BUILDPY2TOOLS)ROOTDIRS += \
+ $(ROOTONBLD)/lib/python$(PYTHON_VERSION) \
+ $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld \
+ $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld/Checks \
+ $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld/Scm
+
+$(BUILDPY3TOOLS)ROOTDIRS += \
+ $(ROOTONBLD)/lib/python$(PYTHON3_VERSION) \
+ $(ROOTONBLD)/lib/python$(PYTHON3_VERSION)/onbld \
+ $(ROOTONBLD)/lib/python$(PYTHON3_VERSION)/onbld/__pycache__ \
+ $(ROOTONBLD)/lib/python$(PYTHON3_VERSION)/onbld/Checks \
+ $(ROOTONBLD)/lib/python$(PYTHON3_VERSION)/onbld/Checks/__pycache__ \
+ $(ROOTONBLD)/lib/python$(PYTHON3_VERSION)/onbld/Scm \
+ $(ROOTONBLD)/lib/python$(PYTHON3_VERSION)/onbld/Scm/__pycache__
+
all := TARGET= install
install := TARGET= install
clean := TARGET= clean
@@ -134,7 +146,7 @@ DOROOTDIRS= $(ROOTDIRS)
clobber:= DOROOTDIRS=
clean:= DOROOTDIRS=
-DOROOTONBLDLIBPY= $(ROOTONBLDLIBPY)
+$(BUILDPY2TOOLS)DOROOTONBLDLIBPY= $(ROOTONBLDLIBPY)
clobber:= DOROOTONBLDLIBPY=
clean:= DOROOTONBLDLIBPY=