~ubuntu-branches/ubuntu/raring/m2vrequantiser/raring

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2012-03-23 09:20:55 UTC
  • Revision ID: package-import@ubuntu.com-20120323092055-44vxlk1vlffnoain
Tags: upstream-1.1
ImportĀ upstreamĀ versionĀ 1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
#export DH_VERBOSE=1
 
4
 
 
5
include /usr/share/quilt/quilt.make
 
6
 
 
7
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
8
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
9
 
 
10
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
 
11
        CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
 
12
else
 
13
        CROSS= --build $(DEB_BUILD_GNU_TYPE)
 
14
endif
 
15
 
 
16
build: build-stamp
 
17
build-stamp: debian/stamp-patched
 
18
        dh_testdir
 
19
 
 
20
        $(MAKE) -j $(NCPUS)
 
21
 
 
22
        touch $@
 
23
 
 
24
clean: unpatch
 
25
        dh_testdir
 
26
        dh_testroot
 
27
        rm -f build-stamp
 
28
 
 
29
        [ ! -f Makefile ] || $(MAKE) clean
 
30
 
 
31
        dh_clean
 
32
 
 
33
install: build
 
34
        dh_testdir
 
35
        dh_testroot
 
36
        dh_prep
 
37
 
 
38
        $(MAKE) install PREFIX=$(CURDIR)/debian/m2vrequantiser/usr
 
39
 
 
40
# Build architecture-independent files here.
 
41
binary-indep: build install
 
42
 
 
43
# Build architecture-dependent files here.
 
44
binary-arch: build install
 
45
        dh_testdir
 
46
        dh_testroot
 
47
        dh_installdocs README.txt
 
48
        dh_installman
 
49
        dh_installchangelogs
 
50
        dh_link
 
51
        dh_strip
 
52
        dh_compress
 
53
        dh_fixperms
 
54
        dh_makeshlibs
 
55
        dh_installdeb
 
56
        dh_shlibdeps
 
57
        dh_gencontrol
 
58
        dh_md5sums
 
59
        dh_builddeb -- -Zbzip2
 
60
 
 
61
binary: binary-indep binary-arch
 
62
.PHONY: build clean binary-indep binary-arch binary install