X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=c9deb28d1ef8f1ff48a190cd60b109c2f53ab736;hb=040861555bc0487e5a8e3128c9d7bd010bb50733;hp=aa5cb1d22298de60dedcdfe6e8181fa67ca04d81;hpb=342187d6e7ce34d4fdf403952637659b93aa4bee;p=nepi.git diff --git a/Makefile b/Makefile index aa5cb1d2..c9deb28d 100644 --- a/Makefile +++ b/Makefile @@ -66,8 +66,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=mario@build.onelab.eu +PYPI_TARBALL_HOST=$(BUILD_ID)@build.onelab.eu PYPI_TARBALL_TOPDIR=/build/nepi VERSION=$(shell cat VERSION) @@ -98,3 +105,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))"