Onionr/Makefile

42 lines
1.2 KiB
Makefile
Raw Normal View History

PREFIX = /usr/local
.DEFAULT_GOAL := setup
setup:
pip3 install -r requirements.txt
install:
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
chmod +x $(DESTDIR)$(PREFIX)/bin/onionr
uninstall:
rm -rf $(DESTDIR)$(PREFIX)/share/onionr
rm -f $(DESTDIR)$(PREFIX)/bin/onionr
test:
2018-05-15 06:16:40 +00:00
@./RUN-LINUX.sh stop
@sleep 1
2018-03-03 22:18:57 +00:00
@rm -rf onionr/data-backup
@mv onionr/data onionr/data-backup | true > /dev/null 2>&1
-@cd onionr; ./tests.py;
2018-03-03 22:18:57 +00:00
@rm -rf onionr/data
@mv onionr/data-backup onionr/data | true > /dev/null 2>&1
2018-04-16 03:11:59 +00:00
soft-reset:
@echo "Soft-resetting Onionr..."
rm -f onionr/data/blocks/*.dat onionr/data/*.db | true > /dev/null 2>&1
@./RUN-LINUX.sh version | grep -v "Failed" --color=always
2018-04-16 03:11:59 +00:00
reset:
@echo "Hard-resetting Onionr..."
rm -rf onionr/data/ | true > /dev/null 2>&1
2018-05-07 06:55:03 +00:00
#@./RUN-LINUX.sh version | grep -v "Failed" --color=always
2018-05-11 05:18:39 +00:00
plugins-reset:
@echo "Resetting plugins..."
rm -rf onionr/data/plugins/ | true > /dev/null 2>&1
@./RUN-LINUX.sh version | grep -v "Failed" --color=always