github.com/ahjdzx/deis@v1.1.1/client/Makefile (about)

     1  
     2  build: setup-venv
     3  	venv/bin/pip install docopt==0.6.2 python-dateutil==2.2 PyYAML==3.11 requests==2.4.3 pyinstaller==2.1 termcolor==1.1.0
     4  	venv/bin/pyinstaller deis.spec
     5  	chmod +x dist/deis
     6  
     7  # Install deis client locally through pip.
     8  install:
     9  	pip install .
    10  
    11  # Remove the installed copy of the deis client through pip.
    12  uninstall:
    13  	pip uninstall -y deis
    14  
    15  # Clean up after setup.py droppings.
    16  clean:
    17  	rm -rf build/ dist/ *.egg-info
    18  
    19  client:
    20  	pyinstaller deis.spec
    21  
    22  installer: build
    23  	@if [ ! -d makeself ]; then git clone -b single-binary https://github.com/deis/makeself.git; fi
    24  	PATH=./makeself:$$PATH BINARY=deis makeself.sh --bzip2 --current --nox11 dist \
    25  		dist/deis-cli-`grep '__version__\ =\ ' deis.py | cut -d' ' -f3 | tr -d \'`-`go env GOOS`-`go env GOARCH`.run \
    26  		"Deis CLI" "echo \
    27  		&& echo '\033[0;36mdeis\033[0m is in the current directory. Please' \
    28  		&& echo 'move \033[0;36mdeis\033[0m to a directory in your search PATH.' \
    29  		&& echo \
    30  		&& echo 'See http://docs.deis.io/ for documentation.' \
    31  		&& echo"
    32  
    33  setup-venv:
    34  	@if [ ! -d venv ]; then virtualenv venv; fi
    35  	venv/bin/pip install -q flake8==2.2.2
    36  
    37  test-style: setup-venv
    38  	venv/bin/flake8