X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=035481316be81a6b5ea0fe5993adfbf593bd3d3a;hb=3a425e860e6bb734d1adee38ffe3aa9947f26a78;hp=bafeed9260f782f1cafb890ac3a1a8db465adc84;hpb=830e7dd1a7878c57a45d6e53d638b0fe498034b2;p=nepi.git diff --git a/Makefile b/Makefile index bafeed92..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=mario@build.onelab.eu +PYPI_TARBALL_HOST=$(BUILD_ID)@build.onelab.eu PYPI_TARBALL_TOPDIR=/build/nepi VERSION=$(shell cat VERSION) @@ -100,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))"