Makefile 625 B

1234567891011121314151617181920212223242526
  1. .SILENT: install pt-install services config password
  2. PYTHON=python
  3. install:
  4. echo "Setting up Python Virtualenv..."
  5. virtualenv env
  6. $$(source env/bin/activate)
  7. echo "Installing dependencies..."
  8. pip install -r requirements.txt
  9. echo "done"
  10. pt-install:
  11. printf "Installing poussetaches..."
  12. cp -R poussetaches /usr/bin/poussetaches
  13. echo "done"
  14. services:
  15. ./mkservices.sh
  16. config:
  17. ./mkconfig.sh
  18. password:
  19. $(PYTHON) -c "import bcrypt; from getpass import getpass; print(bcrypt.hashpw(getpass().encode('utf-8'), bcrypt.gensalt()).decode('utf-8'))"
  20. echo "Please copy this code into the 'pass' variable in config/me.yml"