~ubuntu-branches/ubuntu/intrepid/wmtemp/intrepid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Riccardo Stagni
  • Date: 2008-06-20 02:34:07 UTC
  • mfrom: (3.1.2 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080620023407-qle1ytwtv3ssxznf
Tags: 0.0.6-2
* Bumped Standards-Version to 3.8.0, changed debian/rules to support the
  standard values of DEB_BUILD_OPTIONS:
  added support to parallel builds (even if we compile just 3 C source
  files) and removed the nostrip check (because we rely on dh_strip)
* debian/control: lowered package priority (we depend on lm-sensors
  which is extra).
* Removed useless xutils dependency
  (this also fixes lintian's build-depends-on-obsolete-package)
* Added dependency on x11proto-xext-dev as we use some of its headers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
# Uncomment this to turn on verbose mode.
7
7
#export DH_VERBOSE=1
8
8
 
9
 
 
10
 
 
11
 
 
12
9
CFLAGS = -Wall -g
13
10
 
14
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
11
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
15
12
        CFLAGS += -O0
16
13
else
17
14
        CFLAGS += -O2
18
15
endif
19
 
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
20
 
        INSTALL_PROGRAM += -s
 
16
 
 
17
# wrt the policy example, we don't need install -s as upstream simply uses
 
18
# cp to install the executable, and we use dh_strip
 
19
 
 
20
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 
21
        NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 
22
        MAKEFLAGS += -j$(NUMJOBS)
21
23
endif
22
24
 
23
25
configure: configure-stamp
27
29
 
28
30
        touch configure-stamp
29
31
 
30
 
 
31
32
build: build-stamp
32
33
 
33
34
build-stamp: configure-stamp 
35
36
 
36
37
        # Add here commands to compile the package.
37
38
        $(MAKE)
38
 
        #/usr/bin/docbook-to-man debian/wmtemp.sgml > wmtemp.1
39
39
 
40
40
        touch build-stamp
41
41
 
45
45
        rm -f build-stamp configure-stamp
46
46
 
47
47
        # Add here commands to clean up after the build process.
48
 
        -$(MAKE) clean
 
48
        $(MAKE) clean
49
49
 
50
50
        dh_clean 
51
51
 
56
56
        dh_installdirs
57
57
 
58
58
        # Add here commands to install the package into debian/wmtemp.
59
 
        $(MAKE) install DEST=$(CURDIR)/debian/wmtemp/usr/bin MAN=$(CURDIR)/debian/wmtemp/usr/share/man/man1
 
59
        $(MAKE) install PREFIX=$(CURDIR)/debian/wmtemp/usr
60
60
 
61
61
 
62
62
# Build architecture-independent files here.
72
72
        dh_installexamples
73
73
#       dh_install
74
74
        dh_installmenu
75
 
#       dh_installdebconf       
76
 
#       dh_installlogrotate
77
 
#       dh_installemacsen
78
 
#       dh_installpam
79
 
#       dh_installmime
80
 
#       dh_installinit
81
 
#       dh_installcron
82
 
#       dh_installinfo
83
75
        dh_installman wmtemp.1x
84
76
        dh_link
85
77
        dh_strip
86
78
        dh_compress
87
79
        dh_fixperms
88
 
#       dh_perl
89
 
#       dh_python
90
 
#       dh_makeshlibs
91
80
        dh_installdeb
92
81
        dh_shlibdeps
93
82
        dh_gencontrol