1
# This file is part of Checkbox.
3
# Copyright 2015 Canonical Ltd.
5
# Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
7
# Checkbox is free software: you can redistribute it and/or modify
8
# it under the terms of the GNU General Public License version 3,
9
# as published by the Free Software Foundation.
11
# Checkbox is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
# GNU General Public License for more details.
16
# You should have received a copy of the GNU General Public License
17
# along with Checkbox. If not, see <http://www.gnu.org/licenses/>.
19
VERSION:=$(shell python3 setup.py --version)
22
all: dist/plainbox_$(VERSION)_all.snap
27
rm -f dist/plainbox*.snap
30
dist/plainbox_$(VERSION)_all.snap: build/snappy/plainbox.pex build/snappy/meta/package.yaml build/snappy/meta/readme.md | dist
31
cd build/snappy && snappy build -o ../../dist/
36
vendor: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
37
architectures: ["all"]
38
source: http://launchpad.net/checkbox/
43
description: "The main plainbox executable"
44
security-template: unconfined
48
build/snappy/meta/package.yaml: setup.py | build/snappy/meta
49
echo "$$package_yaml" > $@
51
build/snappy/meta/readme.md: setup.py | build/snappy/meta
52
./$^ --description > $@
54
dist build/snappy/meta: %:
57
build/snappy/plainbox.pex:
58
virtualenv -p python3 build/venv-pex
59
. build/venv-pex/bin/activate; pip install wheel pex
60
. build/venv-pex/bin/activate; pex --python=python3 -r pex-requirements.txt -o $@ -m plainbox.public:main