~ubuntu-branches/ubuntu/trusty/aptoncd/trusty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Fabrice Coutadeur
  • Date: 2009-08-24 09:56:20 UTC
  • mto: (2.1.2 squeeze) (1.1.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20090824095620-5l5ooc2ap89yebxb
ImportĀ upstreamĀ versionĀ 0.1.98+bzr112

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
# -*- makefile -*-
3
3
 
 
4
include /usr/share/python/python.mk
 
5
 
4
6
#export DH_VERBOSE=1
5
7
export DH_PYCENTRAL=nomove
6
8
CFLAGS = -Wall -g
7
9
PYVERS=$(shell pyversions -vr)
8
10
 
 
11
UPSTREAM_VERSION=`dpkg-parsechangelog | grep '^Version' | cut -d' ' -f2 | cut -d- -f 1`
 
12
ORIG_URI = lp:~aptoncd-team/aptoncd/main
 
13
REPOS_VERSION = $(shell echo $(UPSTREAM_VERSION) | sed -r "s/.*~bzr//")
 
14
REVISION=`bzr version-info $(ORIG_URI)| grep '^revno' | cut -d' ' -f 2`
 
15
 
9
16
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
10
17
        CFLAGS += -O0
11
18
else
29
36
clean: 
30
37
        dh_testdir
31
38
        dh_testroot
32
 
        rm -f build-stamp configure-stamp
 
39
        rm -f build-stamp configure-stamp build-python*
33
40
 
34
 
        #python ./setup.py clean --all
 
41
        rm -rf build
35
42
        find . -name ".svn" -exec rm -fr {} \;
36
 
        find . -name ".bzr" -exec rm -fr {} \;
37
43
        find . -name "*.pyc" -exec rm {} \;
 
44
        rm -rf po/mo
38
45
 
39
46
        dh_clean 
40
47
 
44
51
        dh_clean
45
52
        dh_installdirs
46
53
        cd $(CURDIR)/po; make update-po
47
 
        python ./setup.py install --prefix=$(CURDIR)/debian/aptoncd/usr
 
54
        python ./setup.py install --prefix=$(CURDIR)/debian/aptoncd/usr $(py_setup_install_args)
48
55
        
49
56
binary-indep: build install
50
 
        dh_desktop
51
 
        #dh_iconcache
52
57
        dh_icons
53
 
 
54
58
        dh_testdir
55
59
        dh_testroot
56
60
        dh_install
72
76
binary-arch: build install
73
77
 
74
78
binary: binary-indep binary-arch
 
79
 
 
80
get-orig-source:
 
81
        bzr export --quiet --format tgz aptoncd_$(UPSTREAM_VERSION)+bzr$(REVISION).orig.tar.gz $(ORIG_URI)
 
82
 
75
83
.PHONY: build clean binary-indep binary-arch binary install configure