forked from shadowsocks/shadowsocks-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (25 loc) · 835 Bytes
/
Makefile
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
PREFIX ?= /usr/local/bin
TARGET ?= debug
.PHONY: all build install uninstall clean
all: build
build:
ifeq (${TARGET}, release)
cargo build --release --features "local-tun local-redir"
else
cargo build --features "local-tun local-redir"
endif
install:
install -d ${DESTDIR}${PREFIX}
install -m 755 target/${TARGET}/sslocal ${DESTDIR}${PREFIX}/sslocal
install -m 755 target/${TARGET}/ssserver ${DESTDIR}${PREFIX}/ssserver
install -m 755 target/${TARGET}/ssurl ${DESTDIR}${PREFIX}/ssurl
install -m 755 target/${TARGET}/ssmanager ${DESTDIR}${PREFIX}/ssmanager
install -m 755 target/${TARGET}/ssservice ${DESTDIR}${PREFIX}/ssservice
uninstall:
rm ${DESTDIR}${PREFIX}/sslocal
rm ${DESTDIR}${PREFIX}/ssserver
rm ${DESTDIR}${PREFIX}/ssurl
rm ${DESTDIR}${PREFIX}/ssmanager
rm ${DESTDIR}${PREFIX}/ssservice
clean:
cargo clean