Add Makefile for testing, installing, and uninstalling
This commit is contained in:
parent
62cad7a6ea
commit
1cfb7796c5
19
Makefile
Normal file
19
Makefile
Normal file
@ -0,0 +1,19 @@
|
||||
.DEFAULT_GOAL := setup
|
||||
|
||||
setup:
|
||||
sudo pip3 install -r requirements.txt
|
||||
sudo rm -rf /usr/share/onionr/
|
||||
sudo rm -f /usr/bin/onionr
|
||||
|
||||
install:
|
||||
sudo cp -rp ./onionr /usr/share/onionr
|
||||
sudo sh -c "echo \"#!/bin/sh\ncd /usr/share/onionr/\n./onionr.py \\\"\\\$$@\\\"\" > /usr/bin/onionr"
|
||||
sudo chmod +x /usr/bin/onionr
|
||||
sudo chown -R `whoami` /usr/share/onionr/
|
||||
|
||||
uninstall:
|
||||
sudo rm -rf /usr/share/onionr
|
||||
sudo rm -f /usr/bin/onionr
|
||||
|
||||
test:
|
||||
@cd onionr; ./tests.py
|
Loading…
Reference in New Issue
Block a user