This way a proper separation between Python installs can be achieved. With no PYTHON_SITEDIR, installation paths are exactly the same as before this change. In practise, passing nonstandard path will break Entropy but so it is also with the currently available LIBDIR. This is a concern of a future improvement (at least the PYTHON_SITEDIR path, not necessarily LIBDIR as PYTHON_SITEDIR *will* be different if it's installed in Python specific directories).
15 lines
260 B
Makefile
15 lines
260 B
Makefile
PREFIX ?= /usr
|
|
BINDIR ?= $(PREFIX)/bin
|
|
LIBDIR ?= $(PREFIX)/lib
|
|
PYTHON_SITEDIR ?= $(LIBDIR)
|
|
DESTDIR ?=
|
|
|
|
all:
|
|
|
|
|
|
install:
|
|
install -d $(DESTDIR)/$(PYTHON_SITEDIR)/entropy/lib/kswitch
|
|
install -m 644 *.py $(DESTDIR)/$(PYTHON_SITEDIR)/entropy/lib/kswitch/
|
|
|
|
clean:
|