~ubuntu-branches/ubuntu/karmic/libgrapple/karmic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Lukas Fittl
  • Date: 2006-08-22 21:27:21 UTC
  • Revision ID: james.westby@ubuntu.com-20060822212721-i5j27our2cvgo21j
Tags: 0.9-0ubuntu1
Initial release.

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
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
6
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
7
 
 
8
CFLAGS = -Wall -g
 
9
 
 
10
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
11
        CFLAGS += -O0
 
12
else
 
13
        CFLAGS += -O2
 
14
endif
 
15
 
 
16
configure: configure-stamp
 
17
configure-stamp:
 
18
        dh_testdir
 
19
        
 
20
        ./autogen.sh
 
21
        ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr
 
22
        
 
23
        touch configure-stamp
 
24
 
 
25
build: build-stamp
 
26
build-stamp: configure-stamp 
 
27
        dh_testdir
 
28
 
 
29
        make check
 
30
 
 
31
        touch $@
 
32
 
 
33
clean:
 
34
        dh_testdir
 
35
        dh_testroot
 
36
 
 
37
        rm -f build-stamp configure-stamp
 
38
 
 
39
        -make distclean
 
40
        
 
41
        rm -f Makefile.in src/Makefile.in test/Makefile.in
 
42
        rm -f aclocal.m4 depcomp install-sh missing
 
43
        rm -f config.guess config.sub configure
 
44
 
 
45
        dh_clean
 
46
 
 
47
install: build
 
48
        dh_testdir
 
49
        dh_testroot
 
50
        dh_clean -k 
 
51
        dh_installdirs
 
52
 
 
53
        make install prefix=$(CURDIR)/debian/tmp/usr
 
54
 
 
55
binary-indep: build install
 
56
binary-arch: build install
 
57
        dh_testdir
 
58
        dh_testroot
 
59
        dh_installchangelogs 
 
60
        dh_installdocs
 
61
        dh_installexamples
 
62
        dh_install
 
63
        dh_link
 
64
        dh_strip
 
65
        dh_compress
 
66
        dh_fixperms
 
67
        dh_makeshlibs
 
68
        dh_installdeb
 
69
        dh_shlibdeps
 
70
        dh_gencontrol
 
71
        dh_md5sums
 
72
        dh_builddeb
 
73
 
 
74
binary: binary-indep binary-arch
 
75
.PHONY: build clean binary-indep binary-arch binary install configure