Skip to content

Commit

Permalink
Add install/uninstall -plugin make targets
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Jul 11, 2024
1 parent 7ae74f2 commit d88d38e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,20 @@ vdb vectordb:

install user-install:
ln -fs $(PWD)/r2ai-server $(R2PM_BINDIR)/r2ai-server
ln -fs $(PWD)/main.py $(R2_USER_PLUGINS)/r2ai.py
ln -fs $(PWD)/r2ai.sh $(R2PM_BINDIR)/r2ai
-mkdir -p /usr/local/share/man/man1/r2ai.1
-cp doc/usage/r2ai.1 /usr/local/share/man/man1/r2ai.1
$(MAKE) -C native/cxx user-uninstall

install-plugin user-install-plugin:
ln -fs $(PWD)/main.py $(R2_USER_PLUGINS)/r2ai.py

uninstall user-uninstall:
rm -f $(R2_USER_PLUGINS)/r2ai.py
rm -f $(R2PM_BINDIR)/r2ai
-rm -f /usr/local/share/man/man1/r2ai.1

user-uninstall-plugin uninstall-plugin:
rm -f $(R2_USER_PLUGINS)/r2ai.py

pub:
$(PYTHON) setup.py build sdist
twine check dist/*
Expand Down

0 comments on commit d88d38e

Please sign in to comment.