]> git.cworth.org Git - empires-html/blobdiff - Makefile
Add a simple "make deploy" target
[empires-html] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..f490fec
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,11 @@
+PUBLISH_HOST=cworth.org
+PUBLISH_DIR=/srv/families.cworth.org/www
+
+DO_NOT_PUBLISH="Makefile"
+
+deploy:
+       rm -rf .deploy-source
+       git clone . .deploy-source
+       rm -rf .deploy-source/.git
+       (cd .deploy-source; rm $(DO_NOT_PUBLISH); rsync -avz ./ --delete --delete-after $(PUBLISH_HOST):$(PUBLISH_DIR) )
+       rm -rf .deploy-source