1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
From: Teemu Ikonen <tpikonen@gmail.com>
Date: Thu, 11 Oct 2018 10:45:49 +0300
Subject: makefile-fix: Allow disabling PyCBF from env with NOPYCBF=yes.
---
Makefile | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 331008b..eddecf9 100644
--- a/Makefile
+++ b/Makefile
@@ -556,6 +556,14 @@ PYCBFBOPT =
PYCBFIOPT =
SETUP_PY = setup.py
INSTALLSETUP_PY = installsetup.py
+NOPYCBF ?=
+ifeq ($(NOPYCBF),yes)
+PYCBF_INSTALL =
+PYCBF_USERINSTALL =
+else
+PYCBF_INSTALL = pycbfinstall
+PYCBF_USERINSTALL = pycbfuserinstall
+endif
#
# Set the compiler and flags
@@ -1033,12 +1041,14 @@ symlinksdone:
./.symlinks $(SLFLAGS)
touch symlinksdone
-install: baseinstall pycbfinstall \
+install: baseinstall \
+ $(PYCBF_INSTALL) \
$(HDF5_INSTALL) \
$(TIFF_INSTALL) \
$(REGEX_INSTALL)
-userinstall: baseinstall pycbfuserinstall \
+userinstall: baseinstall \
+ $(PYCBF_USERINSTALL) \
$(HDF5_INSTALL) \
$(TIFF_INSTALL) \
$(REGEX_INSTALL)
|