X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;fp=Makefile;h=7f36f03e54ac9d8b55766664bbd4c041c14c6a2c;hb=566c0020d9dd39285f0cd64b048082c7497fc629;hp=802fa0b855c737bbecee330762fda68d6071753e;hpb=e065a4f02fe845294dde0fb50efce0ad84118f3d;p=plstackapi.git diff --git a/Makefile b/Makefile index 802fa0b..7f36f03 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,6 @@ VERSION = $(shell rpm -q --specfile $(SPECFILE) --qf '%{VERSION}\n' | head -n 1) RELEASE = $(shell rpm -q --specfile $(SPECFILE) --qf '%{RELEASE}\n' | head -n 1) UPLOAD_SLICE=princeton_planetstack -UPLOAD_HOST=node36.princeton.vicci.org PWD = $(shell pwd) @@ -36,6 +35,9 @@ clean: rm -rf build install: $(NAME)-$(VERSION)-$(RELEASE).rpm +ifndef UPLOAD_HOST + $(error please specify UPLOAD_HOST= on make command line) +endif scp $(NAME)-$(VERSION)-$(RELEASE).x86_64.rpm $(UPLOAD_SLICE)@$(UPLOAD_HOST):/root/ ssh $(UPLOAD_SLICE)@$(UPLOAD_HOST) yum -y install gcc graphviz-devel graphviz-python postgresql postgresql-server python-pip python-psycopg2 libxslt-devel python-httplib2 GeoIP ssh $(UPLOAD_SLICE)@$(UPLOAD_HOST) rpm --install --upgrade --replacepkgs /root/$(NAME)-$(VERSION)-$(RELEASE).x86_64.rpm