~ubuntu-branches/ubuntu/hardy/gtk2-engines-xfce/hardy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2004-05-23 17:05:36 UTC
  • Revision ID: james.westby@ubuntu.com-20040523170536-45chwkk63uzzw80l
Tags: 2.1.8-1.1
 * NMU, with maintainer approval, to avoid breakage with new GTK+.
 * Rebuilt with GTK+ 2.4.

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 (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
7
        CFLAGS += -O0
 
8
else
 
9
        CFLAGS += -O2
 
10
endif
 
11
 
 
12
configure: configure-stamp
 
13
configure-stamp:
 
14
        
 
15
        dh_testdir
 
16
        ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr
 
17
        touch configure-stamp
 
18
 
 
19
build: build-stamp
 
20
 
 
21
build-stamp:  configure-stamp
 
22
 
 
23
        dh_testdir
 
24
        $(MAKE)
 
25
        touch build-stamp
 
26
 
 
27
clean:
 
28
        
 
29
        dh_testdir
 
30
        dh_testroot
 
31
        rm -f configure-stamp build-stamp 
 
32
 
 
33
        -$(MAKE) distclean
 
34
        
 
35
        -test -r /usr/share/misc/config.sub && \
 
36
          cp -f /usr/share/misc/config.sub config.sub
 
37
        -test -r /usr/share/misc/config.guess && \
 
38
          cp -f /usr/share/misc/config.guess config.guess
 
39
 
 
40
        dh_clean
 
41
 
 
42
install: build
 
43
        
 
44
        dh_testdir
 
45
        dh_testroot
 
46
        dh_clean -k
 
47
 
 
48
        $(MAKE) install DESTDIR=`pwd`/debian/gtk2-engines-xfce
 
49
 
 
50
binary-indep: build install
 
51
 
 
52
binary-arch: build install
 
53
        
 
54
        dh_testdir
 
55
        dh_testroot
 
56
        
 
57
        dh_installdocs
 
58
        dh_installchangelogs ChangeLog
 
59
 
 
60
        dh_strip
 
61
        dh_compress
 
62
 
 
63
        dh_fixperms
 
64
        dh_installdeb
 
65
        
 
66
        dh_shlibdeps
 
67
        dh_gencontrol
 
68
        
 
69
        dh_md5sums
 
70
        dh_builddeb
 
71
 
 
72
binary: binary-indep binary-arch
 
73
.PHONY: build clean binary-indep binary-arch binary install