fixed makefile

This commit is contained in:
putro 2019-03-23 22:45:35 +01:00
parent ceacdb8ccf
commit 75377df46a
3 changed files with 5 additions and 3 deletions

View File

@ -82,11 +82,13 @@ ssh_upload: publish
rsync_upload: publish rsync_upload: publish
rsync -e "ssh -p $(SSH_PORT)" -P -rvzc --cvs-exclude --delete $(OUTPUTDIR)/ $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR) rsync -e "ssh -p $(SSH_PORT)" -P -rvzc --cvs-exclude --delete $(OUTPUTDIR)/ $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)
HOST=$(shell hostname)
production: publish production: publish
ifeq "$(HOSTNAME)" "zaphoda" ifeq ($(HOST),zaphoda)
cp -R $(OUTPUTDIR)/* $(SSH_TARGET_DIR)/ cp -R $(OUTPUTDIR)/* $(SSH_TARGET_DIR)/
else else
echo "devi essere su zaphoda per lanciare questo comando" @echo "devi essere su zaphoda per lanciare questo comando"
endif endif
.PHONY: html help clean regenerate serve serve-global devserver stopserver publish ssh_upload rsync_upload .PHONY: html help clean regenerate serve serve-global devserver stopserver publish ssh_upload rsync_upload