From 8ec98c0d9ac5b42d9157cc1f2d5160a07fac16e8 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 16 Sep 2021 18:40:29 +0200 Subject: Improve makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- config.mk | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 config.mk (limited to 'config.mk') diff --git a/config.mk b/config.mk new file mode 100644 index 0000000..08768f8 --- /dev/null +++ b/config.mk @@ -0,0 +1,9 @@ +PREFIX = /usr +PYTHONDIR = $(PREFIX)/lib/python$(PYTHON_VERSION) +PYTHONPKGDIR = $(PYTHONDIR)/site-packages + +PYTHON_MAJOR = $$(python --version 2>&1 | cut -d . -f 1 | cut -d ' ' -f 2) +PYTHON_MINOR = $$(python$(PYTHON_MAJOR) --version 2>&1 | cut -d . -f 2) +PYTHON_VERSION = $(PYTHON_MAJOR).$(PYTHON_MINOR) + +PYTHON = python$(PYTHON_VERSION) -- cgit v1.2.3-70-g09d2