X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=035481316be81a6b5ea0fe5993adfbf593bd3d3a;hb=3a425e860e6bb734d1adee38ffe3aa9947f26a78;hp=45a09ded719431e49ba22a0c585e48d267e37e33;hpb=54f157ab90a37ae410dd558a7323650d8394c59b;p=nepi.git diff --git a/Makefile b/Makefile index 45a09ded..03548131 100644 --- a/Makefile +++ b/Makefile @@ -68,8 +68,15 @@ dist: MANIFEST ########## for uploading onto pypi # this assumes you have an entry 'pypi' in your .pypirc # see pypi documentation on how to create .pypirc +LOCAL_ID=$(shell id) +ifneq "$(LOCAL_ID)" "$(filter $(LOCAL_ID),parmen)" +BUILD_ID=thierry +else +BUILD_ID=mario +endif + PYPI_TARGET=pypi -PYPI_TARBALL_HOST=root@build.onelab.eu +PYPI_TARBALL_HOST=$(BUILD_ID)@build.onelab.eu PYPI_TARBALL_TOPDIR=/build/nepi VERSION=$(shell cat VERSION) @@ -83,7 +90,6 @@ pypi: @if [ -n "$(ALREADY_SET)" ] ; then echo "tag $(VERSIONTAG) already set"; false; fi @echo "You are about to release $(VERSION) - OK (Ctrl-c if not) ? " ; read _ git tag $(VERSIONTAG) - ./setup.py sdist upload -r pypi #./setup.py sdist upload -r pypi ./setup.py sdist twine upload dist/* -r pypi @@ -101,3 +107,13 @@ testpypi: #./setup.py sdist upload -r testpypi ./setup.py sdist twine upload dist/* -r testpypi + +#################### 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))"