You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
genmarkov/Makefile

23 lines
536 B

FEATURES:="api,always-aggregate"
4 years ago
4 years ago
markov:
4 years ago
cargo build --release --features $(FEATURES)
4 years ago
strip target/release/markov
4 years ago
install:
-rc-service markov shutdown && sleep 0.6
4 years ago
-rc-service markov stop
4 years ago
cp -f target/release/markov /usr/local/bin/markov
rc-service markov start
reinstall: uninstall
4 years ago
cp -f target/release/markov /usr/local/bin/markov
4 years ago
rm -f /var/nginx/markov.dat
rc-service markov start
sleep 0.2
4 years ago
curl -X PUT --data-binary @default http://127.0.0.1:8001/put
4 years ago
uninstall:
-rc-service markov stop
4 years ago
rm -f /usr/local/bin/markov