~ubuntu-branches/ubuntu/oneiric/sg3-utils/oneiric

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2009-11-05 20:42:13 UTC
  • mfrom: (5.2.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091105204213-ug7wrb6m7l9kmvyg
Tags: 1.28-2
* QA upload.
* Add libsgutils2-2.symbols.kfreebsd. Some of the symbols are Linux
  specific causing FTBFS on kfreebsd.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# Sample debian/rules that uses debhelper. 
3
 
# GNU copyright 1997 by Joey Hess.
4
 
#
5
 
# This version is for a hypothetical package that builds an
6
 
# architecture-dependant package, as well as an architecture-independent
7
 
# package.
 
2
# debian/rules file for the sg3-utils package
 
3
 
 
4
# This has to be exported to make some magic below work.
 
5
export DH_OPTIONS
8
6
 
9
7
# Uncomment this to turn on verbose mode. 
10
8
# export DH_VERBOSE=1
38
36
 
39
37
        dh_clean
40
38
 
41
 
install: DH_OPTIONS=
42
39
install: build
43
40
        dh_testdir
44
41
        dh_testroot
45
 
        dh_clean
 
42
        dh_prep
46
43
        dh_installdirs
47
44
 
48
45
        # Add here commands to install the package into debian/tmp
49
46
        $(MAKE) -e install DESTDIR=$(CURDIR)/debian/tmp PREFIX=/usr
50
47
 
51
48
        dh_install --autodest --sourcedir=debian/tmp
52
 
        cp scripts/scsi* scripts/sas* debian/sg3-utils/usr/bin
 
49
        cp scripts/scsi* debian/sg3-utils/usr/bin
53
50
 
54
51
        dh_installman
55
52
 
59
56
# nothing to do here
60
57
 
61
58
# Build architecture-dependent files here.
 
59
binary-arch: DH_OPTIONS=-a
62
60
binary-arch: build install
63
 
        dh_testdir -a
64
 
        dh_testroot -a
65
 
        dh_installdocs -a
66
 
        dh_installexamples -a 
67
 
        dh_installmenu -a
68
 
        dh_installchangelogs ChangeLog -a
69
 
        dh_strip -a
70
 
        dh_link -a
71
 
        dh_compress -a -X archive -X .c -X .h
72
 
        dh_fixperms -a
73
 
        dh_makeshlibs -V -v
74
 
        dh_installdeb -a
 
61
        dh_testdir
 
62
        dh_testroot
 
63
        dh_installdocs
 
64
        dh_installexamples
 
65
        dh_installmenu
 
66
        dh_installchangelogs ChangeLog
 
67
        dh_strip
 
68
        dh_link
 
69
        dh_compress -X archive -X .c -X .h
 
70
        dh_fixperms
 
71
        dh_makeshlibs
 
72
        dh_installdeb
75
73
ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
76
74
        echo kfreebsd:Depends=libcam-dev >>debian/libsgutils2-dev.substvars
77
75
endif
78
 
        dh_shlibdeps -ldebian/tmp/usr/lib -L libsgutils2
79
 
        dh_gencontrol -a
80
 
        dh_md5sums -a
81
 
        dh_builddeb -a
 
76
        dh_shlibdeps
 
77
        dh_gencontrol
 
78
        dh_md5sums
 
79
        dh_builddeb
82
80
 
83
81
binary: binary-indep binary-arch
84
82
.PHONY: build clean binary-indep binary-arch binary install configure