period3.xyz/makefile

23 lines
339 B
Makefile

.DEFAULT_GOAL := site
SITE = period3.xyz
HOST = pluto
HOST_DIR = $(HOST):~
CONTENT = content/
DEPLOY = deploy.sh
site: $(SITE)
$(SITE): $(CONTENT)
[ -d $(SITE) ] || rsync -rP $(CONTENT) $(SITE)
deploy: site
rsync -P $(DEPLOY) $(HOST_DIR)
rsync -rP $(SITE) $(HOST_DIR)
ssh $(HOST) "bash -s" < $(DEPLOY)
clean:
rm -r $(SITE)