Lines 1-32
Link Here
|
1 |
--- Makefile.orig 2015-06-05 21:41:48 UTC |
|
|
2 |
+++ Makefile |
3 |
@@ -14,7 +14,7 @@ endif |
4 |
# e.g. install to /usr with `make PREFIX=/usr` |
5 |
PREFIX=/usr/local |
6 |
BINDIR=$(PREFIX)/bin |
7 |
-MANDIR=$(PREFIX)/share/man |
8 |
+MANDIR=$(PREFIX)/man |
9 |
|
10 |
PKG_CONFIG ?= pkg-config |
11 |
|
12 |
@@ -43,7 +43,7 @@ ptrace.o: ptrace.h platform/platform.h $ |
13 |
clean: |
14 |
rm -f reptyr $(OBJS) test/victim.o test/victim |
15 |
|
16 |
-BASHCOMPDIR ?= $(shell $(PKG_CONFIG) --variable=completionsdir bash-completion 2>/dev/null) |
17 |
+BASHCOMPDIR ?= $(PREFIX)/share/bash-completion/completions |
18 |
|
19 |
install: reptyr |
20 |
install -d -m 755 $(DESTDIR)$(BINDIR) |
21 |
@@ -52,9 +52,7 @@ install: reptyr |
22 |
install -m 644 reptyr.1 $(DESTDIR)$(MANDIR)/man1/reptyr.1 |
23 |
install -d -m 755 $(DESTDIR)$(MANDIR)/fr/man1 |
24 |
install -m 644 reptyr.fr.1 $(DESTDIR)$(MANDIR)/fr/man1/reptyr.1 |
25 |
- bashcompdir=$(BASHCOMPDIR) ; \ |
26 |
- test -z "$$bashcompdir" && bashcompdir=/etc/bash_completion.d ; \ |
27 |
- install -d -m 755 $(DESTDIR)$$bashcompdir ; \ |
28 |
- install -m 644 reptyr.bash $(DESTDIR)$$bashcompdir/reptyr |
29 |
+ install -d -m 755 $(DESTDIR)$(BASHCOMPDIR) |
30 |
+ install -m 644 reptyr.bash $(DESTDIR)$(BASHCOMPDIR)/reptyr |
31 |
|
32 |
.PHONY: PHONY |