Commit da55fc21 authored by Gebhardt, Albrecht's avatar Gebhardt, Albrecht

better install target

parent 225dfafe
......@@ -4,9 +4,13 @@ frewe-client: frewe-client.c http_fetcher.c http_error_codes.c
gcc frewe-client.c http_fetcher.c http_error_codes.c -o frewe-client -lusb -lm -lcrypto
install: frewe-client
service frewe-client stop
cp rc.frewe-client /etc/init.d/frewe-client
cp frewe-client.cfg /etc && echo "please edit /etc/frewe-client.cfg"
chmod 755 /etc/init.d/frewe-client
update-rc.d frewe-client defaults
service frewe-client stop || true
cp frewe-client /usr/local/bin/
service frewe-client start
service frewe-client start || true
clean:
rm -f *.o frewe-client
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment