X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=2446adcebbe5a110b2c45ed7e62e51f3f9e9035f;hb=dd5f700e6e2f9969d7c37d3cef3c3624adffe3f5;hp=84b999cbb33fc15c5a56c0756d31b70645e13cb9;hpb=512d5361d824f2202e82d6d40efc88d67992ea96;p=sfa.git diff --git a/Makefile b/Makefile index 84b999cb..2446adce 100644 --- a/Makefile +++ b/Makefile @@ -5,15 +5,15 @@ DESTDIR="/" ########## -all: python wsdl +all: python wsdl -install: python-install wsdl-install xmlbuilder-install +install: python-install wsdl-install xmlbuilder-install tests-install -clean: python-clean wsdl-clean +clean: python-clean wsdl-clean -uninstall: python-uninstall +uninstall: python-uninstall tests-uninstall -.PHONY: all install clean +.PHONY: all install clean uninstall ########## python: @@ -43,6 +43,17 @@ wsdl-clean: .PHONY: wsdl wsdl-install wsdl-clean + +########## +tests-install: + mkdir -p $(DESTDIR)/usr/share/sfa/tests + install -m 755 tests/*.py $(DESTDIR)/usr/share/sfa/tests/ + +tests-uninstall: + rm -rf $(DESTDIR)/usr/share/sfa/tests + +.PHONY: tests-install tests-uninstall + ########## refreshing methods package metafile # Metafiles - manage Legacy/ and Accessors by hand init := sfa/methods/__init__.py @@ -67,11 +78,12 @@ force: ########## tags: - find . -type f | egrep -v '/\.git/|/\.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 signatures: - grep 'def.*call' sfa/methods/*.py > sfa/methods/SIGNATURES + (cd sfa/methods; grep 'def.*call' *.py > SIGNATURES) +.PHONY: signatures ########## sync # 2 forms are supported