DEPLOY_HOST=lmno.games DEPLOY_DIR=/srv/lmno.games/www DO_NOT_DEPLOY="Makefile" DO_NOT_DELETE=flempires deploy: rm -rf .deploy-source git clone . .deploy-source rm -rf .deploy-source/.git (cd .deploy-source; rsync -avz \ --exclude=$(DO_NOT_DEPLOY) \ --exclude=$(DO_NOT_DELETE) \ --delete \ --delete-after \ ./ $(DEPLOY_HOST):$(DEPLOY_DIR) ) rm -rf .deploy-source