blob: a309db1f5d8b45548a7eed16841c8e2434361714 (
plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
From: Michael Olbrich <m.olbrich@pengutronix.de>
Date: Tue, 27 Nov 2012 11:37:29 +0100
Subject: [PATCH] use python from AM_PATH_PYTHON
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
configure.ac | 1 +
wrapper/python/Makefile | 11 -----------
wrapper/python/Makefile.in | 13 +++++++++++++
3 files changed, 14 insertions(+), 11 deletions(-)
delete mode 100755 wrapper/python/Makefile
create mode 100755 wrapper/python/Makefile.in
diff --git a/configure.ac b/configure.ac
index f457730..c9667cc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,6 +12,7 @@ AC_CONFIG_FILES([
test/simple_test/Makefile
test/unit_test/Makefile
wrapper/Makefile
+ wrapper/python/Makefile
])
AC_PROG_CC
diff --git a/wrapper/python/Makefile b/wrapper/python/Makefile
deleted file mode 100755
index 4f4d9d2..0000000
--- a/wrapper/python/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-all:
- python setup.py build
-
-install:
- python setup.py install --prefix=$$DESTDIR/usr
-
-clean:
- rm -Rf build
- rm -f *.pyc hello.png
-
-.PHONY: all install clean
diff --git a/wrapper/python/Makefile.in b/wrapper/python/Makefile.in
new file mode 100755
index 0000000..64d46ba
--- /dev/null
+++ b/wrapper/python/Makefile.in
@@ -0,0 +1,13 @@
+PYTHON = @PYTHON@
+
+all:
+ $(PYTHON) setup.py build
+
+install:
+ $(PYTHON) setup.py install --prefix=$$DESTDIR/usr
+
+clean:
+ rm -Rf build
+ rm -f *.pyc hello.png
+
+.PHONY: all install clean
|