diff options
Diffstat (limited to 'config.mk')
-rw-r--r-- | config.mk | 9 |
1 files changed, 9 insertions, 0 deletions
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) |