Makefile 365 B

1234567891011121314151617181920
  1. venv:
  2. if [ ! -d "./venv" ]; then \
  3. python3 -m venv venv; \
  4. source venv/bin/activate; \
  5. pip3 install -r requirements.txt; \
  6. deactivate; \
  7. fi;
  8. pack: venv
  9. pyinstaller --onefile twiins.py
  10. install:
  11. if [ ! -f "./dist/twiins" ]; then cp ./dist/twiins /usr/local/bin; fi
  12. uninstall:
  13. @rm /usr/local/bin/twiins
  14. clean:
  15. rm -rf build/ dist/ venv/ *.spec *.log