X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=f05c06f9f5782a12314f8c08c155153a3c03ee82;hb=refs%2Fheads%2Fpython2;hp=ebd0eb80753f2d7268523af9326a27704d63b493;hpb=21d187714285d9818fd94509b015ba069facb7ef;p=plcapi.git diff --git a/Makefile b/Makefile index ebd0eb8..f05c06f 100644 --- a/Makefile +++ b/Makefile @@ -21,12 +21,20 @@ PWD := $(shell pwd) all: python setup.py build -install: +install: install-python install-phpxmlrpc + +install-python: python setup.py install \ --install-purelib=$(DESTDIR)/$(datadir)/plc_api \ --install-scripts=$(DESTDIR)/$(datadir)/plc_api \ --install-data=$(DESTDIR)/$(datadir)/plc_api +# phpxmlrpc is a git subtree; we just ship all its contents +# under /usr/share/plc_api/php/phpxmlrpc +install-phpxmlrpc: + mkdir -p $(DESTDIR)/$(datadir)/plc_api/php/phpxmlrpc/ + rsync --exclude .git -ai php/phpxmlrpc/ $(DESTDIR)/$(datadir)/plc_api/php/phpxmlrpc/ + clean: find . -name '*.pyc' | xargs rm -f python setup.py clean && rm -rf build @@ -76,7 +84,7 @@ ifeq (,$(SSHURL)) @echo " make sync PLCHOSTLXC=.. GUESTHOSTNAME=.. GUESTNAME=.." @exit 1 else - +$(RSYNC) plcsh PLC planetlab5.sql migrations aspects $(SSHURL)/usr/share/plc_api/ + +$(RSYNC) plcsh PLC planetlab5.sql migrations $(SSHURL)/usr/share/plc_api/ +$(RSYNC) db-config.d/ $(SSHURL)/etc/planetlab/db-config.d/ +$(RSYNC) plc.d/ $(SSHURL)/etc/plc.d/ +$(RSYNC) apache/plc.wsgi $(SSHURL)/usr/share/plc_api/apache/