~jocave/checkbox/hybrid-amd-gpu-mods

« back to all changes in this revision

Viewing changes to plainbox/Makefile

  • Committer: Sylvain Pineau
  • Date: 2014-07-29 16:05:54 UTC
  • mto: This revision was merged to the branch mainline in revision 3149.
  • Revision ID: sylvain.pineau@canonical.com-20140729160554-qev8887xbunn9tmi
checkbox-ng:launchers:checkbox-cli: The checkbox-cli launcher

Running the default whitelist (with the suite selection screen skipped)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# This file is part of Checkbox.
2
 
#
3
 
# Copyright 2015 Canonical Ltd.
4
 
# Written by:
5
 
#   Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
6
 
#
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.
10
 
#
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.
15
 
#
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/>.
18
 
 
19
 
VERSION:=$(shell python3 setup.py --version)
20
 
 
21
 
.PHONY: all
22
 
all: dist/plainbox_$(VERSION)_all.snap
23
 
 
24
 
.PHONY: clean
25
 
clean:
26
 
        rm -rf build/snappy/
27
 
        rm -f dist/plainbox*.snap
28
 
        rm -rf build/venv-pex
29
 
 
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/
32
 
 
33
 
define package_yaml
34
 
name: plainbox
35
 
version: $(VERSION)
36
 
vendor: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
37
 
architectures: ["all"]
38
 
source: http://launchpad.net/checkbox/
39
 
type: app
40
 
binaries:
41
 
 - name: plainbox
42
 
   exec: plainbox.pex
43
 
   description: "The main plainbox executable"
44
 
   security-template: unconfined
45
 
endef
46
 
 
47
 
export package_yaml
48
 
build/snappy/meta/package.yaml: setup.py | build/snappy/meta
49
 
        echo "$$package_yaml" > $@
50
 
 
51
 
build/snappy/meta/readme.md: setup.py | build/snappy/meta
52
 
        ./$^ --description > $@
53
 
 
54
 
dist build/snappy/meta: %:
55
 
        mkdir -p $@
56
 
 
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
61
 
        rm -rf build/venv-pex