X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=06f184c3ebc44045b2bd3b85535af15b0ea6887c;hb=b1775bb47ea5e242d337dbd34f5d58d10a57a028;hp=fc89a214fb37a068bbdeecc7aaa6e0eac1a3332b;hpb=8f4c514a32011dc469dd98f8fdb5892e18db41dc;p=sfa.git diff --git a/Makefile b/Makefile index fc89a214..06f184c3 100644 --- a/Makefile +++ b/Makefile @@ -5,38 +5,31 @@ DESTDIR="/" ########## -all: keyconvert python wsdl +all: python wsdl -install: keyconvert-install python-install wsdl-install +install: python-install wsdl-install xmlbuilder-install -clean: keyconvert-clean python-clean wsdl-clean +clean: python-clean wsdl-clean -.PHONY: all install clean - -########## -keyconvert: - $(MAKE) -C keyconvert - -keyconvert-install: - $(MAKE) -C keyconvert install +uninstall: python-uninstall -keyconvert-clean: - $(MAKE) -C keyconvert clean - -.PHONY: keyconvert keyconvert-install keyconvert-clean +.PHONY: all install clean ########## python: +xmlbuilder-install: + cd xmlbuilder-0.9 && python setup.py install --root=$(DESTDIR) && cd - + python-install: - python setup.py install --root=$(DESTDIR) + python setup.py install --root=$(DESTDIR) chmod 444 $(DESTDIR)/etc/sfa/default_config.xml python-clean: python setup.py clean rm $(init) -.PHONY: python python-install python-clean +.PHONY: python python-install python-clean xmlbuilder-install ########## wsdl: $(MAKE) -C wsdl @@ -53,7 +46,7 @@ wsdl-clean: # are the .java files used ? tags: - find . -type f | egrep -v '/\.svn/|TAGS|\.py[co]$$|\.doc$$|\.html$$|\.pdf$$' | xargs etags + find . -type f | egrep -v '/\.git/|/\.svn/|TAGS|\.py[co]$$|\.doc$$|\.html$$|\.pdf$$' | xargs etags .PHONY: tags @@ -64,6 +57,8 @@ tags: # (*) otherwise, entering through the root context # make sync PLCHOST=testbox1.inria.fr GUEST=vplc03.inria.fr +PLCHOST ?= testplc.onelab.eu + ifdef GUEST ifdef PLCHOST SSHURL:=root@$(PLCHOST):/vservers/$(GUEST) @@ -76,9 +71,9 @@ SSHCOMMAND:=ssh root@$(PLC) endif LOCAL_RSYNC_EXCLUDES := --exclude '*.pyc' -RSYNC_EXCLUDES := --exclude .svn --exclude CVS --exclude '*~' --exclude TAGS $(LOCAL_RSYNC_EXCLUDES) +RSYNC_EXCLUDES := --exclude .svn --exclude .git --exclude '*~' --exclude TAGS $(LOCAL_RSYNC_EXCLUDES) RSYNC_COND_DRY_RUN := $(if $(findstring n,$(MAKEFLAGS)),--dry-run,) -RSYNC := rsync -a -v $(RSYNC_COND_DRY_RUN) $(RSYNC_EXCLUDES) +RSYNC := rsync -a -v $(RSYNC_COND_DRY_RUN) --no-owner $(RSYNC_EXCLUDES) BINS = ./config/sfa-config-tty ./config/gen-sfa-cm-config.py \ ./sfa/plc/sfa-import-plc.py ./sfa/plc/sfa-nuke-plc.py ./sfa/server/sfa-server.py \