SOURCE_DIR = $(CURDIR)/ RSYNC_PARAMS = --exclude-from='.rsync-exclude' --delete -avzP SSH_USER = amin@bandali.eu.org SSH_DEST = /var/www/bandali.eu.org/ all: deploy deploy: rsync $(RSYNC_PARAMS) $(SOURCE_DIR) $(SSH_USER):$(SSH_DEST) .PHONY: deploy