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.

Makefile 764B

1234567891011121314151617181920212223242526272829
  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. rsync -P -rvzc --cvs-exclude --delete ./output/ $(SERVER_OUTPUT)
  19. .PHONY: help
  20. help:
  21. @grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'