~snappy-dev/snapcraft/core

« back to all changes in this revision

Viewing changes to plugins/make-project.py

  • Committer: Michael Terry
  • Date: 2015-06-24 13:17:44 UTC
  • Revision ID: michael.terry@canonical.com-20150624131744-soy3h30tkk44pmoq
Add make-project; support after: key; improve libpipeline example

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- Mode:Python; indent-tabs-mode:t; tab-width:4 -*-
 
2
 
 
3
import snapcraft
 
4
 
 
5
class MakeHandler(snapcraft.BaseHandler):
 
6
        def pull(self):
 
7
                self.pullBranch(self.options.source)
 
8
        def build(self):
 
9
                self.run("make all")
 
10
        def stage(self):
 
11
                self.run("make install DESTDIR=" + self.stagedir)
 
12
        def deploy(self):
 
13
                self.doDeploy(["bin", "share", "lib"]) # not "include"
 
14
        def test(self):
 
15
                self.run("make check")