~tribaal/txaws/xss-hardening

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Duncan McGreggor
  • Author(s): duncan at dreamhost
  • Date: 2012-01-24 22:29:36 UTC
  • mto: This revision was merged to the branch mainline in revision 114.
  • Revision ID: duncan@dreamhost.com-20120124222936-wzaplepyaxf0b01w
Added system checks and conditionals for binary names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
PLATFORM = $(shell uname)
 
2
ifeq ($(PLATFORM), Darwin)
 
3
PYBIN = Python
 
4
else
 
5
PYBIN = python
 
6
endif
 
7
 
 
8
 
 
9
check-pybin:
 
10
        echo "$(PYBIN)"
 
11
 
1
12
version:
2
13
        @python -c "from txaws import version;print version.txaws;"
3
14
 
17
28
 
18
29
virtual-dir-setup: VERSION ?= 2.7
19
30
virtual-dir-setup:
20
 
        -@test -d .venv-$(VERSION) || virtualenv -p Python$(VERSION) .venv-$(VERSION)
 
31
        -@test -d .venv-$(VERSION) || virtualenv -p $(PYBIN)$(VERSION) .venv-$(VERSION)
21
32
        -@test -e .venv-$(VERSION)/bin/twistd || . .venv-$(VERSION)/bin/activate && pip install twisted
22
33
        -@test -e .venv-$(VERSION)/bin/pep8 || . .venv-$(VERSION)/bin/activate && pip install pep8
23
34
        -@test -e .venv-$(VERSION)/bin/pyflakes || . .venv-$(VERSION)/bin/activate && pip install pyflakes
28
39
 
29
40
 
30
41
virtual-builds:
31
 
        -@test -e "`which python2.5`" && VERSION=2.5 make virtual-dir-setup || echo "Couldn't find Python2.5"
32
 
        -@test -e "`which python2.6`" && VERSION=2.6 make virtual-dir-setup || echo "Couldn't find Python2.6"
33
 
        -@test -e "`which python2.7`" && VERSION=2.7 make virtual-dir-setup || echo "Couldn't find Python2.7"
 
42
        -@test -e "`which $(PYBIN)2.5`" && VERSION=2.5 make virtual-dir-setup || echo "Couldn't find $(PYBIN)2.5"
 
43
        -@test -e "`which $(PYBIN)2.6`" && VERSION=2.6 make virtual-dir-setup || echo "Couldn't find $(PYBIN)2.6"
 
44
        -@test -e "`which $(PYBIN)2.7`" && VERSION=2.7 make virtual-dir-setup || echo "Couldn't find $(PYBIN)2.7"
34
45
 
35
46
 
36
47
virtual-trial: VERSION ?= 2.7