~cjwatson/rabbitfixture/rabbitmq-server-3.8.10

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Copyright 2005-2011 Canonical Ltd.  This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).

PYTHON = python
PY = $(PWD)/bin/py

BUILDOUT_CFG = buildout.cfg

# Do not add bin/buildout to this list. It is impossible to get
# buildout to tell us all the files it would build, since each egg's
# setup.py doesn't tell us that information.
#
# NB: It's important BUILDOUT_BIN only mentions things genuinely
# produced by buildout.
BUILDOUT_BIN = $(PY) bin/tags bin/test


default: check


download-cache:
	mkdir download-cache


bin/buildout: download-cache
	$(PYTHON) bootstrap.py
	touch --no-create $@


$(PY): bin/buildout $(BUILDOUT_CFG) setup.py
	PYTHONPATH=. ./bin/buildout -c $(BUILDOUT_CFG)


$(subst $(PY),,$(BUILDOUT_BIN)): $(PY)


build: $(BUILDOUT_BIN)


dist: setup.py
	$(PY) setup.py egg_info -r sdist


check: bin/test
	./bin/test -vv


.PHONY: build check default dist