Lines 9-24
Link Here
|
9 |
|
9 |
|
10 |
PKG_CONFIG ?= pkg-config |
10 |
PKG_CONFIG ?= pkg-config |
11 |
|
11 |
|
12 |
@@ -43,7 +43,7 @@ ptrace.o: ptrace.h platform/platform.h $ |
12 |
@@ -52,9 +52,5 @@ install: reptyr |
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 |
13 |
install -m 644 reptyr.1 $(DESTDIR)$(MANDIR)/man1/reptyr.1 |
23 |
install -d -m 755 $(DESTDIR)$(MANDIR)/fr/man1 |
14 |
install -d -m 755 $(DESTDIR)$(MANDIR)/fr/man1 |
24 |
install -m 644 reptyr.fr.1 $(DESTDIR)$(MANDIR)/fr/man1/reptyr.1 |
15 |
install -m 644 reptyr.fr.1 $(DESTDIR)$(MANDIR)/fr/man1/reptyr.1 |
Lines 26-32
Link Here
|
26 |
- test -z "$$bashcompdir" && bashcompdir=/etc/bash_completion.d ; \ |
17 |
- test -z "$$bashcompdir" && bashcompdir=/etc/bash_completion.d ; \ |
27 |
- install -d -m 755 $(DESTDIR)$$bashcompdir ; \ |
18 |
- install -d -m 755 $(DESTDIR)$$bashcompdir ; \ |
28 |
- install -m 644 reptyr.bash $(DESTDIR)$$bashcompdir/reptyr |
19 |
- 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 |
|
20 |
|
32 |
.PHONY: PHONY |
21 |
.PHONY: PHONY |