~ubuntu-branches/ubuntu/lucid/imagination/lucid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-05-12 07:19:02 UTC
  • Revision ID: james.westby@ubuntu.com-20090512071902-alks7q2uz0wlj2rl
Tags: 1.0-1
Initial release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
DEB_HOST_GNU_TYPE       ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
4
DEB_BUILD_GNU_TYPE      ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
5
 
 
6
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
 
7
        CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
 
8
else
 
9
        CROSS= --build $(DEB_BUILD_GNU_TYPE)
 
10
endif
 
11
 
 
12
clean:
 
13
        dh_testdir
 
14
        dh_testroot
 
15
        rm -f build-stamp
 
16
        rm -f config.guess config.sub
 
17
 
 
18
        [ ! -f Makefile ] || $(MAKE) distclean
 
19
 
 
20
        dh_clean
 
21
 
 
22
config.status: configure
 
23
        dh_testdir
 
24
 
 
25
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
 
26
        cp -f /usr/share/misc/config.guess config.guess
 
27
endif
 
28
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
 
29
        cp -f /usr/share/misc/config.sub config.sub
 
30
endif
 
31
 
 
32
        ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
 
33
 
 
34
build: build-stamp
 
35
build-stamp: config.status
 
36
        dh_testdir
 
37
 
 
38
        $(MAKE)
 
39
 
 
40
        touch build-stamp
 
41
 
 
42
install: build
 
43
        dh_testdir
 
44
        dh_testroot
 
45
        dh_prep
 
46
 
 
47
        $(MAKE) DESTDIR=$(CURDIR)/debian/imagination install
 
48
        rm -f debian/imagination/usr/lib/imagination/*.la
 
49
 
 
50
binary: binary-arch
 
51
 
 
52
binary-arch: install
 
53
        dh_testdir
 
54
        dh_testroot
 
55
        dh_installchangelogs -XChangeLog
 
56
        dh_installdocs
 
57
        dh_install
 
58
        dh_installman
 
59
        dh_installmenu
 
60
        dh_strip
 
61
        dh_compress
 
62
        dh_fixperms
 
63
        dh_installdeb
 
64
        dh_shlibdeps
 
65
        dh_gencontrol
 
66
        dh_md5sums
 
67
        dh_builddeb
 
68
 
 
69
binary-indep:
 
70
 
 
71
.PHONY: clean build install binary binary-arch binary-indep