From 0bce98367c70c43eaa425aad101e15ed3db612a8 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sat, 16 May 2020 13:05:43 -0700 Subject: [PATCH] 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. --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Makefile 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 -- 2.43.0