Skip to content

Commit 41801dd

Browse files
committed
fix make install
1 parent 7691d81 commit 41801dd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Makefile

+2-4
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ export prefix bindir sharedir
4646

4747
CC = cc
4848
RM = rm -rf
49-
PREFIX = /usr/local
50-
BINDIR = $(PREFIX)/bin
5149

5250
ifeq ($(uname_S),Linux)
5351
ALL_LDFLAGS += -lrt
@@ -194,10 +192,10 @@ version.h: FORCE
194192
@./gen-version.sh
195193

196194
install: all
197-
install -p -m 755 dnscrypt-wrapper $(BINDIR)
195+
install -D -p -m 755 dnscrypt-wrapper $(bindir)
198196

199197
uninstall:
200-
$(RM) $(BINDIR)/dnscrypt-wrapper
198+
$(RM) $(bindir)/dnscrypt-wrapper
201199

202200
clean:
203201
$(RM) dnscrypt-wrapper

0 commit comments

Comments
 (0)