~newell-jensen/maas/update-fix-1508741-1.9

« back to all changes in this revision

Viewing changes to acceptance/Makefile

  • Committer: Gavin Panella
  • Date: 2012-09-03 17:25:15 UTC
  • mto: This revision was merged to the branch mainline in revision 1033.
  • Revision ID: gavin.panella@canonical.com-20120903172515-30ru87xgvmyo03r0
Binary build the current branch using the packaging branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
packaging := lp:~maas-maintainers/maas/packaging
 
2
 
 
3
version = $(shell \
 
4
    dpkg-parsechangelog -lsource/debian/changelog | \
 
5
        sed -rne 's,^Version: ([^-]+).*,\1,p')
 
6
 
 
7
orig = maas_$(version).orig.tar.gz
 
8
 
 
9
upstream = $(abspath $(PWD)/..)
 
10
 
 
11
##
 
12
 
 
13
build: source source/debian source.tar.gz
 
14
        ln -sfn source.tar.gz $(orig)
 
15
        cd source && debuild -i -us -uc -b
 
16
 
 
17
##
 
18
 
 
19
source:
 
20
        bzr export --uncommitted $@ $(upstream)
 
21
 
 
22
source/debian: | source
 
23
        bzr export $@ $(packaging)/debian
 
24
 
 
25
source.tar.gz: | source
 
26
        tar -czf $@ --exclude source/debian source
 
27
 
 
28
##
 
29
 
 
30
install-missing-packages:
 
31
        sudo apt-get install dh-apport
 
32
 
 
33
clean:
 
34
        $(RM) -r build-area source packaging
 
35
        $(RM) *.orig.tar.gz *.debian.tar.gz source.tar.gz
 
36
        $(RM) *.build *.dsc *.changes *.deb
 
37
 
 
38
##
 
39
 
 
40
.PHONY: build clean install-missing-packages