X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=6279ed1ffb77e1433b92635c6f31c39b41b40a53;hb=9387180f9530a333fae7bfad2828b1f0f7f3ed10;hp=144c06c3ea9eddca13acc2b680b25e5e6e88a662;hpb=b1f27f83087c333cbcb80c63b5d0e7b9a9f9d1ed;p=sfa.git diff --git a/Makefile b/Makefile index 144c06c3..6279ed1f 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ PREFIX=/usr ########## all: python wsdl -install: python-install wsdl-install xmlbuilder-install tests-install +install: python-install wsdl-install tests-install clean: python-clean wsdl-clean @@ -28,10 +28,6 @@ version: sfa/util/version.py sfa/util/version.py: sfa/util/version.py.in force sed -e "s,@VERSIONTAG@,$(VERSIONTAG),g" -e "s,@SCMURL@,$(SCMURL),g" sfa/util/version.py.in > $@ -xmlbuilder-install: - cd xmlbuilder-0.9 && python setup.py install --prefix=$(PREFIX) --root=$(DESTDIR) && cd - - rm -rf $(DESTDIR)/usr/lib*/python*/site-packages/*egg-info - # postinstall steps - various cleanups and tweaks for a nicer rpm python-install: python setup.py install --prefix=$(PREFIX) --root=$(DESTDIR) @@ -47,7 +43,7 @@ python-clean: version-clean version-clean: rm -f sfa/util/version.py -.PHONY: python version python-install python-clean version-clean xmlbuilder-install +.PHONY: python version python-install python-clean version-clean ########## wsdl: $(MAKE) -C wsdl @@ -153,7 +149,7 @@ SSHURL:=root@$(PLC):/ SSHCOMMAND:=ssh root@$(PLC) else ifdef PLCHOSTLXC -SSHURL:=root@$(PLCHOSTLXC):/vservers/$(GUESTNAME)/rootfs +SSHURL:=root@$(PLCHOSTLXC):/vservers/$(GUESTNAME) SSHCOMMAND:=ssh root@$(PLCHOSTLXC) ssh $(GUESTHOSTNAME) else ifdef PLCHOSTVS @@ -223,3 +219,13 @@ sfa/util/{sfalogging,faults,genicode,enumeration,__init__}.py clientlibsync: @[ -d "$(CLIENTLIBTARGET)" ] || { echo "You need to set the make variable CLIENTLIBTARGET"; exit 1; } rsync -av --relative $(CLIENTLIBFILES) $(CLIENTLIBTARGET) + +#################### convenience, for debugging only +# make +foo : prints the value of $(foo) +# make ++foo : idem but verbose, i.e. foo=$(foo) +++%: varname=$(subst +,,$@) +++%: + @echo "$(varname)=$($(varname))" ++%: varname=$(subst +,,$@) ++%: + @echo "$($(varname))"