Mirror of Awesome Sysadmin
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.1 KiB

  1. SHELL := /bin/bash
  2. .PHONY: install # install build tools in a virtualenv
  3. install:
  4. python3 -m venv .venv
  5. source .venv/bin/activate && \
  6. pip3 install wheel && \
  7. pip3 install --force git+https://github.com/nodiscc/hecat.git@master
  8. .PHONY: import # import data from original list at https://github.com/awesome-foss/awesome-sysadmin
  9. import: install
  10. rm -rf tags/ software/ platforms/
  11. mkdir -p tags/ software/ platforms/
  12. source .venv/bin/activate && \
  13. hecat --config .hecat/import.yml
  14. .PHONY: awesome_lint # check data against awesome-sysadmin guidelines
  15. awesome_lint: install
  16. source .venv/bin/activate && \
  17. hecat --config .hecat/awesome-lint.yml
  18. .PHONY: url_check # check URLs for dead links or other connection problems
  19. url_check: install
  20. source .venv/bin/activate && \
  21. hecat --config .hecat/url-check.yml
  22. .PHONY: clean # clean files generated by automated tasks
  23. clean:
  24. rm -rf .venv/ licenses.yml platforms/ software/ tags/
  25. .PHONY: help # generate list of targets with descriptions
  26. help:
  27. @grep '^.PHONY: .* #' Makefile | sed 's/\.PHONY: \(.*\) # \(.*\)/\1 \2/' | expand -t20