~ubuntu-branches/ubuntu/vivid/psi/vivid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Jan Niehusmann
  • Date: 2012-04-06 18:21:48 UTC
  • mfrom: (6.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20120406182148-pe5yvcbs7403tzlu
Tags: 0.14-3
* Fixed clean target (Closes: Bug#666161)
* Add missing include to fix build with gcc 4.7 (Closes: Bug#667332)
* Build-depend on libenchant-dev (Closes: Bug#571657)
* Updated manual page (new man page generated with help2man)
  (Closes: Bug#602335)
* Switch to dh build tool
* Fix clean target (Closes: Bug#666161)
* Set Standards-Version to 3.9.3

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 to 1999 by Joey Hess.
4
 
 
5
 
# Uncomment this to turn on verbose mode.
6
 
#export DH_VERBOSE=1
7
 
 
8
 
configure: configure-stamp
9
 
configure-stamp:
10
 
        dh_testdir
11
 
        # Add here commands to configure the package.
12
 
        
13
 
 
14
 
        touch configure-stamp
15
 
 
16
 
build: configure-stamp build-stamp
17
 
build-stamp:
18
 
        dh_testdir
19
 
 
20
 
        # Add here commands to compile the package.
 
2
export DEB_BUILD_HARDENING=1
 
3
#export DEB_BUILD_HARDENING_DEBUG=1
 
4
 
 
5
%:
 
6
        dh $@ --parallel
 
7
 
 
8
override_dh_auto_configure:
21
9
        ./configure --prefix=/usr --qtdir=/usr/share/qt4/ --disable-bundled-qca --no-separate-debug-info # --enable-debug
22
 
        $(MAKE) 
23
 
        #/usr/bin/docbook-to-man debian/psi.sgml > psi.1
24
 
 
25
 
        touch build-stamp
26
 
 
27
 
clean:
28
 
        dh_testdir
29
 
        dh_testroot
30
 
        rm -f build-stamp configure-stamp
31
 
 
32
 
        # Add here commands to clean up after the build process.
33
 
        [ ! -f Makefile ] || $(MAKE) distclean
34
 
        -rm src/Makefile
35
 
        -rm Makefile
36
 
        -rm libpsi/psiwidgets/Makefile
37
 
        -rm src/psi
 
10
 
 
11
override_dh_icons:
 
12
        mkdir -p $(CURDIR)/debian/psi/usr/share/pixmaps
 
13
        cp debian/psi.xpm $(CURDIR)/debian/psi/usr/share/pixmaps/
 
14
        dh_icons
 
15
 
 
16
override_dh_clean:
 
17
        dh_clean
 
18
        -rm conf.log
38
19
        -rm conf.pri
39
 
        -rm extra.pri
40
 
        -rm conf.log
 
20
        -rm iris/conf.pri
 
21
        -rm iris/lib/libiris.a
 
22
        -rm iris/lib/libiris.prl
 
23
        -rm iris/lib/libirisnet.a
 
24
        -rm iris/lib/libirisnet.prl
 
25
        -rm psi
41
26
        -rm src/config.h
42
 
        -rm src/.qmake.internal.cache
43
 
        -rm psi
44
 
 
45
 
        dh_clean
46
 
 
47
 
install: build
48
 
        dh_testdir
49
 
        dh_testroot
50
 
        dh_clean -k
51
 
        dh_installdirs
52
 
 
53
 
        # Add here commands to install the package into debian/psi.
54
 
        $(MAKE) install INSTALL_ROOT=$(CURDIR)/debian/psi
55
 
 
56
 
        mkdir -p $(CURDIR)/debian/psi/usr/share/doc/psi
57
 
        mkdir -p $(CURDIR)/debian/psi/usr/share/lintian/overrides/
58
 
        mkdir -p $(CURDIR)/debian/psi/usr/share/pixmaps
59
 
 
60
 
        ln -sf ../../psi/README $(CURDIR)/debian/psi/usr/share/doc/psi/README
61
 
        cp ./debian/lintian-override $(CURDIR)/debian/psi/usr/share/lintian/overrides/psi
62
 
        cp ./psi.xpm $(CURDIR)/debian/psi/usr/share/pixmaps
63
 
 
64
 
# Build architecture-independent files here.
65
 
binary-indep: build install
66
 
# We have nothing to do by default.
67
 
 
68
 
# Build architecture-dependent files here.
69
 
binary-arch: build install
70
 
        dh_testdir
71
 
        dh_testroot
72
 
#       dh_installdebconf       
73
 
        dh_installdocs
74
 
        dh_installexamples
75
 
        dh_installmenu
76
 
#       dh_installlogrotate
77
 
#       dh_installemacsen
78
 
#       dh_installpam
79
 
#       dh_installmime
80
 
#       dh_installinit
81
 
#       dh_installcron
82
 
        dh_installman
83
 
#       dh_installinfo
84
 
#       dh_undocumented
85
 
        dh_installchangelogs
86
 
        dh_icons
87
 
        dh_link
88
 
        dh_strip
89
 
        dh_compress
90
 
        dh_fixperms
91
 
#       dh_makeshlibs
92
 
        dh_installdeb
93
 
#       dh_perl
94
 
        dh_shlibdeps
95
 
        dh_gencontrol
96
 
        dh_md5sums
97
 
        dh_builddeb
98
 
 
99
 
binary: binary-indep binary-arch
100
 
.PHONY: build clean binary-indep binary-arch binary install configure
 
27
 
 
28
 
 
29
#configure: configure-stamp
 
30
#configure-stamp:
 
31
#       dh_testdir
 
32
#       # Add here commands to configure the package.
 
33
#       
 
34
#
 
35
#       touch configure-stamp
 
36
#
 
37
#build: configure-stamp build-stamp
 
38
#build-stamp:
 
39
#       dh_testdir
 
40
#
 
41
#       # Add here commands to compile the package.
 
42
#       ./configure --prefix=/usr --qtdir=/usr/share/qt4/ --disable-bundled-qca --no-separate-debug-info # --enable-debug
 
43
#       $(MAKE) 
 
44
#       #/usr/bin/docbook-to-man debian/psi.sgml > psi.1
 
45
#
 
46
#       touch build-stamp
 
47
#
 
48
#clean:
 
49
#       dh_testdir
 
50
#       dh_testroot
 
51
#       rm -f build-stamp configure-stamp
 
52
#
 
53
#       # Add here commands to clean up after the build process.
 
54
#       [ ! -f Makefile ] || $(MAKE) distclean
 
55
#       -rm src/Makefile
 
56
#       -rm Makefile
 
57
#       -rm libpsi/psiwidgets/Makefile
 
58
#       -rm src/psi
 
59
#       -rm conf.pri
 
60
#       -rm extra.pri
 
61
#       -rm conf.log
 
62
#       -rm src/config.h
 
63
#       -rm src/.qmake.internal.cache
 
64
#       -rm psi
 
65
#
 
66
#       dh_clean
 
67
#
 
68
#install: build
 
69
#       dh_testdir
 
70
#       dh_testroot
 
71
#       dh_clean -k
 
72
#       dh_installdirs
 
73
#
 
74
#       # Add here commands to install the package into debian/psi.
 
75
#       $(MAKE) install INSTALL_ROOT=$(CURDIR)/debian/psi
 
76
#
 
77
#       mkdir -p $(CURDIR)/debian/psi/usr/share/doc/psi
 
78
#       mkdir -p $(CURDIR)/debian/psi/usr/share/lintian/overrides/
 
79
#       mkdir -p $(CURDIR)/debian/psi/usr/share/pixmaps
 
80
#
 
81
#       ln -sf ../../psi/README $(CURDIR)/debian/psi/usr/share/doc/psi/README
 
82
#       cp ./debian/lintian-override $(CURDIR)/debian/psi/usr/share/lintian/overrides/psi
 
83
#       cp ./psi.xpm $(CURDIR)/debian/psi/usr/share/pixmaps
 
84
#
 
85
## Build architecture-independent files here.
 
86
#binary-indep: build install
 
87
## We have nothing to do by default.
 
88
#
 
89
## Build architecture-dependent files here.
 
90
#binary-arch: build install
 
91
#       dh_testdir
 
92
#       dh_testroot
 
93
##      dh_installdebconf       
 
94
#       dh_installdocs
 
95
#       dh_installexamples
 
96
#       dh_installmenu
 
97
##      dh_installlogrotate
 
98
##      dh_installemacsen
 
99
##      dh_installpam
 
100
##      dh_installmime
 
101
##      dh_installinit
 
102
##      dh_installcron
 
103
#       dh_installman
 
104
##      dh_installinfo
 
105
##      dh_undocumented
 
106
#       dh_installchangelogs
 
107
#       dh_icons
 
108
#       dh_link
 
109
#       dh_strip
 
110
#       dh_compress
 
111
#       dh_fixperms
 
112
##      dh_makeshlibs
 
113
#       dh_installdeb
 
114
##      dh_perl
 
115
#       dh_shlibdeps
 
116
#       dh_gencontrol
 
117
#       dh_md5sums
 
118
#       dh_builddeb
 
119
#
 
120
#binary: binary-indep binary-arch
 
121
#.PHONY: build clean binary-indep binary-arch binary install configure