~ubuntu-branches/ubuntu/hoary/hardinfo/hoary

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Leandro Pereira
  • Date: 2004-06-14 21:33:25 UTC
  • Revision ID: james.westby@ubuntu.com-20040614213325-tob3015hzne85t9h
Tags: 0.3.6-5
* Add Amd64 support (closes: #253935).
  Thanks to Kurt Roeckx <Q@ping.be>
* Close duplicate "doesn't work with newer pciutils" bug (closes: #254018).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# Sample debian/rules that uses debhelper.
 
3
# GNU copyright 1997 to 1999 by Joey Hess.
 
4
 
 
5
# Uncomment this to turn on verbose mode.
 
6
#export DH_VERBOSE=1
 
7
 
 
8
 
 
9
 
 
10
 
 
11
CFLAGS = -Wall -g
 
12
 
 
13
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
14
        CFLAGS += -O0
 
15
else
 
16
        CFLAGS += -O2
 
17
endif
 
18
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
19
        INSTALL_PROGRAM += -s
 
20
endif
 
21
 
 
22
configure: configure-stamp
 
23
configure-stamp:
 
24
        dh_testdir
 
25
        ./configure
 
26
 
 
27
        touch configure-stamp
 
28
 
 
29
 
 
30
build: build-stamp
 
31
 
 
32
build-stamp: configure-stamp 
 
33
        dh_testdir
 
34
 
 
35
        $(MAKE)
 
36
 
 
37
        touch build-stamp
 
38
 
 
39
clean:
 
40
        dh_testdir
 
41
        dh_testroot
 
42
        rm -f build-stamp configure-stamp
 
43
 
 
44
        # Add here commands to clean up after the build process.
 
45
        -$(MAKE) clean
 
46
 
 
47
        dh_clean
 
48
 
 
49
install: build
 
50
        dh_testdir
 
51
        dh_testroot
 
52
        dh_clean -k
 
53
        dh_installdirs
 
54
 
 
55
        # Add here commands to install the package into debian/hardinfo.
 
56
        $(MAKE) install DESTDIR=$(CURDIR)/debian/hardinfo
 
57
 
 
58
 
 
59
# Build architecture-independent files here.
 
60
binary-indep: build install
 
61
# We have nothing to do by default.
 
62
 
 
63
# Build architecture-dependent files here.
 
64
binary-arch: build install
 
65
        dh_testdir
 
66
        dh_testroot
 
67
        dh_installchangelogs ChangeLog
 
68
        dh_installdocs
 
69
#       dh_installexamples
 
70
        dh_install
 
71
        dh_installmenu
 
72
#       dh_installdebconf       
 
73
#       dh_installlogrotate
 
74
#       dh_installemacsen
 
75
#       dh_installpam
 
76
#       dh_installmime
 
77
#       dh_installinit
 
78
#       dh_installcron
 
79
#       dh_installinfo
 
80
        dh_installman debian/hardinfo.1
 
81
        dh_link
 
82
        dh_strip
 
83
        dh_compress
 
84
        dh_fixperms
 
85
#       dh_perl
 
86
#       dh_python
 
87
#       dh_makeshlibs
 
88
        dh_installdeb
 
89
        dh_shlibdeps
 
90
        dh_gencontrol
 
91
        dh_md5sums
 
92
        dh_builddeb
 
93
 
 
94
binary: binary-indep binary-arch
 
95
.PHONY: build clean binary-indep binary-arch binary install configure