Skip to content

Commit

Permalink
build: deps: add uninstall make target
Browse files Browse the repository at this point in the history
Run `sudo make uninstall` to remove binaries added
during installation. The command does NOT delete the potentially critical
`.lotus` and `.lotusminer` folders.
  • Loading branch information
nicobao committed Jun 7, 2022
1 parent 5d7f3c2 commit 3cdd92c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,18 @@ install-worker:
install-app:
install -C ./$(APP) /usr/local/bin/$(APP)

uninstall: uninstall-daemon uninstall-miner uninstall-worker
.PHONY: uninstall

uninstall-daemon:
rm -f /usr/local/bin/lotus

uninstall-miner:
rm -f /usr/local/bin/lotus-miner

uninstall-worker:
rm -f /usr/local/bin/lotus-worker

# TOOLS

lotus-seed: $(BUILD_DEPS)
Expand Down

0 comments on commit 3cdd92c

Please sign in to comment.