~chad.smith/lp2kanban/cross-team-ignore-other-projects

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
49
50
51
52
53
54
55
56
57
# Copyright 2005-2011 Canonical Ltd.  This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).

PYTHON=python
WD:=$(shell pwd)
PY=$(WD)/bin/py

BUILDOUT_CFG=buildout.cfg

CONFIGS_BRANCH=lp:~landscape/landscape/lp2kanban-configs

# 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 -v 1.7.1 -f eggs -c buildout.cfg
	touch --no-create $@


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


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


needs-xdg-utils:
	@xdg-open --help > /dev/null \
            || (echo "missing dependency: please install xdg-utils"; false)


credentials: needs-xdg-utils create_creds.py
	./create_creds.py

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

configs:
	@if [ -d configs ]; then \
	  (cd configs && bzr pull --overwrite $(CONFIGS_BRANCH)); \
	else \
	  bzr branch $(CONFIGS_BRANCH) configs; \
	fi

.PHONY: check default configs needs-xdg-utils