]> git.cworth.org Git - lmno.games/blobdiff - Makefile
Add a simple Makefile with a "make deploy" target
[lmno.games] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..fb39f7f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+DEPLOY_HOST=lmno.games
+DEPLOY_DIR=/srv/lmno.games/www
+DO_NOT_DEPLOY="Makefile"
+
+deploy:
+       rm -rf .deploy-source
+       git clone . .deploy-source
+       rm -rf .deploy-source/.git
+       (cd .deploy-source; rsync -avz \
+               --exclude=$(DO_NOT_DEPLOY) \
+               ./ $(DEPLOY_HOST):$(DEPLOY_DIR) )
+       rm -rf .deploy-source