blob: 07acb78ab2eb567da295b6fe162e2cda0b599519 (
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
|
diff --git a/Makefile b/Makefile
index 846daf0..f2f0402 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ LL2 = -L. -lpigpiod_if -pthread -lrt
LL3 = -L. -lpigpiod_if2 -pthread -lrt
-prefix = /usr/local
+prefix = /usr
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
includedir = $(prefix)/include
@@ -83,13 +83,12 @@ install: $(ALL)
install -m 0755 -s pig2vcd $(DESTDIR)$(bindir)
install -m 0755 -s pigpiod $(DESTDIR)$(bindir)
install -m 0755 -s pigs $(DESTDIR)$(bindir)
- if which python2; then python2 setup.py install; fi
- if which python3; then python3 setup.py install; fi
+ if which python2; then python2 setup.py install --root=$(DESTDIR); fi
+ if which python3; then python3 setup.py install --root=$(DESTDIR); fi
install -m 0755 -d $(DESTDIR)$(mandir)/man1
install -m 0644 *.1 $(DESTDIR)$(mandir)/man1
install -m 0755 -d $(DESTDIR)$(mandir)/man3
install -m 0644 *.3 $(DESTDIR)$(mandir)/man3
- ldconfig
uninstall:
rm -f $(DESTDIR)$(includedir)/pigpio.h
|