Files
shadowsocks-rust/Makefile
Simon Shi 3b09d7633d Debian package fixes (#73)
* General cleanup & Refine Makefile

* Add sysinit & systemd file

* refine readme

* Bump deb version
Use `dch -i` for this work.

* Fix dependency

* Unnecessary postrm

* Add missing arguments
2017-10-12 02:00:46 +08:00

26 lines
522 B
Makefile

PREFIX ?= /usr/local/bin
TARGET ?= debug
.PHONY: all build install uninstall clean
all: build
build:
ifeq (${TARGET}, release)
cargo build --release
else
cargo build
endif
install:
install -Dm 755 target/${TARGET}/sslocal ${DESTDIR}${PREFIX}/sslocal
install -Dm 755 target/${TARGET}/ssserver ${DESTDIR}${PREFIX}/ssserver
install -Dm 755 target/${TARGET}/ssurl ${DESTDIR}${PREFIX}/ssurl
uninstall:
rm ${DESTDIR}${PREFIX}/sslocal
rm ${DESTDIR}${PREFIX}/ssserver
rm ${DESTDIR}${PREFIX}/ssurl
clean:
cargo clean