~ubuntu-branches/ubuntu/edgy/libxfce4util/edgy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez
  • Date: 2005-11-27 12:08:34 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051127120834-uq5ptp5p6fyipwkt
Tags: 4.2.3.2-1
* Yves-Alexis Perez
 * New Upstream Release
* Simon Huggins
 * Configure sysconfdir correctly                             closes: #329139
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# -*- makefile -*-
3
 
 
4
 
# Uncomment this to turn on verbose mode.
5
 
#export DH_VERBOSE=1
6
 
 
7
 
# These are used for cross-compiling and for saving the configure script
8
 
# from having to guess our platform (since we know it already)
 
2
 
9
3
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
10
4
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
11
5
 
16
10
else
17
11
        CFLAGS += -O2
18
12
endif
19
 
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
20
 
        INSTALL_PROGRAM += -s
21
 
endif
22
13
 
23
14
config.status: configure
 
15
        
24
16
        dh_testdir
25
 
        CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --sysconfdir=/etc --enable-final --enable-gtk-doc
26
 
 
 
17
        ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --sysconfdir=/etc --enable-final
27
18
 
28
19
build: build-stamp
29
 
build-stamp:  config.status
 
20
build-stamp: config.status
 
21
        
30
22
        dh_testdir
31
23
        $(MAKE)
32
24
        touch build-stamp
33
25
 
34
26
clean:
 
27
        
35
28
        dh_testdir
36
29
        dh_testroot
37
30
        rm -f build-stamp 
38
31
 
39
 
        # Add here commands to clean up after the build process.
40
32
        -$(MAKE) distclean
 
33
 
41
34
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
42
35
        cp -f /usr/share/misc/config.sub config.sub
43
36
endif
45
38
        cp -f /usr/share/misc/config.guess config.guess
46
39
endif
47
40
 
48
 
        dh_clean 
 
41
        dh_clean
49
42
 
50
43
install: build
 
44
        
51
45
        dh_testdir
52
46
        dh_testroot
53
 
        dh_clean -k 
 
47
        dh_clean -k
54
48
        dh_installdirs
55
 
 
56
 
        # Add here commands to install the package into debian/tmp
57
 
        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
58
 
 
59
 
        # install manual page
60
 
        install -d -m 755 $(CURDIR)/debian/tmp/usr/share/man/man8
61
 
        install -c -m 644 $(CURDIR)/debian/xfce4-kiosk-query.8 \
62
 
                $(CURDIR)/debian/tmp/usr/share/man/man8/xfce4-kiosk-query.8
63
 
 
64
 
# Build architecture-independent files here.
 
49
        
 
50
        $(MAKE) install DESTDIR=`pwd`/debian/tmp
 
51
 
65
52
binary-indep: build install
66
 
# We have nothing to do by default.
67
 
 
68
 
# Build architecture-dependent files here.
69
53
binary-arch: build install
 
54
        
70
55
        dh_testdir
71
56
        dh_testroot
 
57
        
72
58
        dh_installchangelogs ChangeLog
73
 
        dh_installdocs
 
59
        dh_installdocs NEWS TODO
 
60
        dh_installman -p libxfce4util-1 debian/xfce4-kiosk-query.8 
 
61
        
74
62
        dh_install --list-missing --sourcedir=debian/tmp
75
63
        dh_strip
 
64
 
76
65
        dh_compress
77
66
        dh_fixperms
 
67
        
78
68
        dh_installdeb
79
 
        dh_makeshlibs --version-info "libxfce4util-1 (>= 4.2.1-1)"
 
69
        dh_makeshlibs -V 'libxfce4util-1 (>= 4.2.0)'
 
70
 
80
71
        dh_shlibdeps
81
72
        dh_gencontrol
 
73
        
82
74
        dh_md5sums
83
75
        dh_builddeb
84
76