Makefile 830 B

123456789101112131415161718192021222324252627282930
  1. .SILENT: help
  2. help:
  3. echo Options:
  4. echo make update-bur: Update list of BUR submissions
  5. echo make download-bur: Download BUR submissions
  6. echo make update-nc: Update list of NC submissions
  7. echo make download-nc: Download NC submissions
  8. echo make download-ndc: Download NDC submissions
  9. echo make venv: create virtual environment
  10. update-bur: venv
  11. ./venv/bin/python scripts/fetch_submissions_bur.py
  12. download-bur: venv
  13. ./venv/bin/python scripts/download_bur.py
  14. update-nc: venv
  15. ./venv/bin/python scripts/fetch_submissions_nc.py
  16. download-nc: venv
  17. ./venv/bin/python scripts/download_nc.py
  18. download-ndc: venv
  19. ./venv/bin/python scripts/download_ndc.py
  20. venv: code/requirements.txt
  21. [ -d ./venv ] || python3 -m venv venv
  22. ./venv/bin/pip install --upgrade pip
  23. ./venv/bin/pip install -Ur code/requirements.txt
  24. touch venv