From: Carl Worth Date: Sat, 16 May 2020 20:05:43 +0000 (-0700) Subject: Add a simple Makefile with a "make deploy" target X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=commitdiff_plain;h=0bce98367c70c43eaa425aad101e15ed3db612a8 Add a simple Makefile with a "make deploy" target This doesn't do any deleting of pre-existing files, (to avoid deleting any web content from sub directories that aren't being maintained in this repository). We'll need to eventually sort out a better solution for that. --- diff --git a/Makefile b/Makefile new file mode 100644 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