makefile/windows: install qvm-tools with .py extension

So system will automatically run them with python interpreter (wherever
it is installed). This require to have ".py" in PATHEXT variable.
This commit is contained in:
Marek Marczykowski-Górecki 2013-07-30 10:46:37 +02:00
parent 675a164e7d
commit 467477409d

View File

@ -1,10 +1,14 @@
BINDIR ?= /usr/bin
ifeq ($(OS),Windows_NT)
PYTHONEXEEXT = .py
endif
all:
true
install:
mkdir -p $(DESTDIR)$(BINDIR)
cp qvm-* $(DESTDIR)$(BINDIR)
cp qubes-* $(DESTDIR)$(BINDIR)
for f in qvm-* qubes-*; do \
cp $$f $(DESTDIR)$(BINDIR)/$$f$(PYTHONEXEEXT); \
done