conditional destination in makefile
This commit is contained in:
parent
95837d957c
commit
efc4200a9c
1 changed files with 8 additions and 1 deletions
7
Makefile
7
Makefile
|
@ -1,5 +1,12 @@
|
|||
BUILDDIR?=../ungleich-staticcms-build
|
||||
BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
|
||||
|
||||
ifeq ($(BRANCH), "master")
|
||||
DESTINATION=ungleichstatic@staticweb.ungleich.ch:/home/services/www/ungleichstatic/staticcms.ungleich.ch/www/u/
|
||||
else
|
||||
DESTINATION=ungleichstatic@staticweb.ungleich.ch:/home/services/www/ungleichstatic/staticcms-staging.ungleich.ch/www/u/
|
||||
endif
|
||||
|
||||
|
||||
all: publish
|
||||
|
||||
|
|
Loading…
Reference in a new issue