2022-04-08 03:04:03 +02:00
|
|
|
.DEFAULT_GOAL := site
|
2022-04-05 02:39:56 +02:00
|
|
|
|
2022-04-08 03:04:03 +02:00
|
|
|
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)
|