.NOTPARALLEL: backup index sitemaps TITLE ?= my-project TREE_OPTIONS = -T $(TITLE) -I __pycache__ -I backups -D DATE = $(shell date +'%Y-%m-%d-%H:%M:%S') all: deploy index: tree $(TREE_OPTIONS) -H . -t -h -c --prune . > index.html sitemaps: tree $(TREE_OPTIONS) -X . -s . > index.xml tree $(TREE_OPTIONS) -J . -s . > index.json deploy: backup index sitemaps rsync -av . me@server:/katalog backup: mkdir -p backups zip -x "*/__pycache__/*" -x "backups/*" -r backups/$(DATE).zip .