2019-03-05 17:11:49 +00:00
|
|
|
ONIONR_HOME ?= data
|
|
|
|
all:;: '$(ONIONR_HOME)'
|
|
|
|
|
2018-07-20 21:49:03 +00:00
|
|
|
PREFIX = /usr/local
|
|
|
|
|
2018-02-04 04:30:16 +00:00
|
|
|
.DEFAULT_GOAL := setup
|
|
|
|
|
|
|
|
setup:
|
2019-03-29 03:33:14 +00:00
|
|
|
pip3 install -r requirements.txt --require-hashes --user
|
2018-07-30 00:43:28 +00:00
|
|
|
-@cd onionr/static-data/ui/; ./compile.py
|
2018-02-04 04:30:16 +00:00
|
|
|
|
|
|
|
install:
|
2018-07-20 21:49:03 +00:00
|
|
|
cp -rfp ./onionr $(DESTDIR)$(PREFIX)/share/onionr
|
|
|
|
echo '#!/bin/sh' > $(DESTDIR)$(PREFIX)/bin/onionr
|
|
|
|
echo 'cd $(DESTDIR)$(PREFIX)/share/onionr' > $(DESTDIR)$(PREFIX)/bin/onionr
|
2018-07-20 21:55:03 +00:00
|
|
|
echo './onionr "$$@"' > $(DESTDIR)$(PREFIX)/bin/onionr
|
2018-07-20 21:49:03 +00:00
|
|
|
chmod +x $(DESTDIR)$(PREFIX)/bin/onionr
|
2018-02-04 04:30:16 +00:00
|
|
|
|
|
|
|
uninstall:
|
2018-07-20 21:49:03 +00:00
|
|
|
rm -rf $(DESTDIR)$(PREFIX)/share/onionr
|
|
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/onionr
|
2018-02-04 04:30:16 +00:00
|
|
|
|
|
|
|
test:
|
2019-02-14 23:48:41 +00:00
|
|
|
./run_tests.sh
|
2018-03-03 22:18:57 +00:00
|
|
|
|
2018-04-16 03:11:59 +00:00
|
|
|
soft-reset:
|
2018-04-21 01:20:26 +00:00
|
|
|
@echo "Soft-resetting Onionr..."
|
2019-02-14 23:48:41 +00:00
|
|
|
rm -f onionr/$(ONIONR_HOME)/blocks/*.dat onionr/data/*.db onionr/$(ONIONR_HOME)/block-nonces.dat | true > /dev/null 2>&1
|
2019-01-13 22:20:10 +00:00
|
|
|
@./onionr.sh version | grep -v "Failed" --color=always
|
2018-04-16 03:11:59 +00:00
|
|
|
|
|
|
|
reset:
|
|
|
|
@echo "Hard-resetting Onionr..."
|
2019-02-14 23:48:41 +00:00
|
|
|
rm -rf onionr/$(ONIONR_HOME)/ | true > /dev/null 2>&1
|
2018-09-25 04:26:16 +00:00
|
|
|
cd onionr/static-data/www/ui/; rm -rf ./dist; python compile.py
|
2019-03-29 03:33:14 +00:00
|
|
|
#@./onionr.sh version | grep -v "Failed" --color=always
|
2018-05-11 05:18:39 +00:00
|
|
|
|
|
|
|
plugins-reset:
|
|
|
|
@echo "Resetting plugins..."
|
2019-02-14 23:48:41 +00:00
|
|
|
rm -rf onionr/$(ONIONR_HOME)/plugins/ | true > /dev/null 2>&1
|
2019-01-13 22:20:10 +00:00
|
|
|
@./onionr.sh version | grep -v "Failed" --color=always
|