This is a gentle fork from https://framagit.org/marienfressinaud/photos.marienfressinaud.fr with a responsive and optimized mindset. https://media.larlet.fr/
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.

преди 6 години
преди 6 години
преди 6 години
123456789101112131415161718192021222324252627282930
  1. .DEFAULT_GOAL := help
  2. include .env
  3. SERVER_OUTPUT = $(MF_GALLERY_OUTPUT) # user@server.url:/path/to/website
  4. .PHONY: install
  5. install: ## Install the dependencies to build the website
  6. pip3 install --user -r requirements.txt
  7. .PHONY: build
  8. build: ## Build the website
  9. python3 boop.py
  10. .PHONY: clean
  11. clean: ## Clean output files
  12. rm -rf ./output ./__pycache__
  13. .PHONY: serve
  14. serve: build ## Serve the website (development)
  15. cd output && python3 -m http.server 8080
  16. .PHONY: publish
  17. publish: build ## Publish the website online (rsync)
  18. echo $(SERVER_OUTPUT)
  19. rsync -P -rvzc --cvs-exclude --delete ./output/ $(SERVER_OUTPUT)
  20. .PHONY: help
  21. help:
  22. @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'