blob: 9d561161cdc7a4a367c2cc83d4eb61c379b6d0cd (
plain) (
blame)
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
|
--- Makefile.orig 2015-06-05 21:41:48 UTC
+++ Makefile
@@ -14,7 +14,7 @@ endif
# e.g. install to /usr with `make PREFIX=/usr`
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
-MANDIR=$(PREFIX)/share/man
+MANDIR=$(PREFIX)/man
PKG_CONFIG ?= pkg-config
@@ -43,7 +43,7 @@ ptrace.o: ptrace.h platform/platform.h $
clean:
rm -f reptyr $(OBJS) test/victim.o test/victim
-BASHCOMPDIR ?= $(shell $(PKG_CONFIG) --variable=completionsdir bash-completion 2>/dev/null)
+BASHCOMPDIR ?= $(PREFIX)/share/bash-completion/completions
install: reptyr
install -d -m 755 $(DESTDIR)$(BINDIR)
@@ -52,9 +52,7 @@ install: reptyr
install -m 644 reptyr.1 $(DESTDIR)$(MANDIR)/man1/reptyr.1
install -d -m 755 $(DESTDIR)$(MANDIR)/fr/man1
install -m 644 reptyr.fr.1 $(DESTDIR)$(MANDIR)/fr/man1/reptyr.1
- bashcompdir=$(BASHCOMPDIR) ; \
- test -z "$$bashcompdir" && bashcompdir=/etc/bash_completion.d ; \
- install -d -m 755 $(DESTDIR)$$bashcompdir ; \
- install -m 644 reptyr.bash $(DESTDIR)$$bashcompdir/reptyr
+ install -d -m 755 $(DESTDIR)$(BASHCOMPDIR)
+ install -m 644 reptyr.bash $(DESTDIR)$(BASHCOMPDIR)/reptyr
.PHONY: PHONY
|