Repository with sources and generator of https://larlet.fr/david/ https://larlet.fr/david/
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

Makefile 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. .DEFAULT_GOAL := help
  2. .PHONY: install
  3. install: ## Install the dependencies
  4. python -m pip install -r requirements.txt
  5. .PHONY: build
  6. build: ## Generate the site
  7. @python site.py pages tags feed home
  8. .PHONY: publish
  9. publish: ## Make heay actions
  10. @python site.py search blogroll
  11. .PHONY: live
  12. live: ## Rebuild contents on file change.
  13. ls david/2023/_sources/* | entr -r make build
  14. .PHONY: toot
  15. toot: ## Pre-write the Mastodon message.
  16. @python site.py toot
  17. .PHONY: help
  18. help:
  19. @python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)
  20. # See https://daniel.feldroy.com/posts/autodocumenting-makefiles
  21. define PRINT_HELP_PYSCRIPT # start of Python section
  22. import re, sys
  23. output = []
  24. # Loop through the lines in this file
  25. for line in sys.stdin:
  26. # if the line has a command and a comment start with
  27. # two pound signs, add it to the output
  28. match = re.match(r'^([a-zA-Z_-]+):.*?## (.*)$$', line)
  29. if match:
  30. target, help = match.groups()
  31. output.append("\033[36m%-10s\033[0m %s" % (target, help))
  32. # Sort the output in alphanumeric order
  33. output.sort()
  34. # Print the help result
  35. print('\n'.join(output))
  36. endef
  37. export PRINT_HELP_PYSCRIPT # End of python section