~ubuntu-branches/ubuntu/trusty/eqonomize/trusty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-05-27 20:27:42 UTC
  • mfrom: (6.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090527202742-miiyw1tmdlzb55ey
Tags: 0.6-3ubuntu1
* Merge with debian unstable (LP: #381051) remaining changes:
  - Drop cmake from build-deps
  - eqonomize.install and rules: keep our usr/share/doc/kde docs location

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
LDFLAGS += -Wl,--as-needed
9
9
 
10
 
include /usr/share/quilt/quilt.make
11
 
 
12
 
build: patch build-stamp
 
10
build: build-stamp
13
11
build-stamp:
14
 
        dh build --before dh_auto_configure
 
12
        dh build --with quilt
 
13
        docbook2x-man debian/manpages/eqonomize.xml
 
14
        touch $@
 
15
 
 
16
override_dh_auto_configure:
15
17
        -mkdir build-dir
16
18
        cd build-dir && \
17
19
        cmake .. \
19
21
          -DCMAKE_INSTALL_PREFIX=/usr \
20
22
          -DCMAKE_SKIP_RPATH=true \
21
23
          -DCMAKE_VERBOSE_MAKEFILE=true
22
 
        dh build --after dh_auto_configure --before dh_auto_build
 
24
 
 
25
override_dh_auto_build:
23
26
        cd build-dir && make
24
 
        dh build --after dh_auto_build
25
 
        docbook2x-man debian/manpages/eqonomize.xml
26
 
        touch $@
27
27
 
28
 
clean: clean-patched unpatch
29
 
clean-patched:
 
28
clean:
30
29
        rm -rf build-dir/
31
 
        dh clean
 
30
        dh clean --with quilt
32
31
        dh_clean \
33
32
          eqonomize.1
34
33
 
35
34
install: build install-stamp
36
35
install-stamp:
37
 
        dh install --before dh_auto_install
38
 
        cd build-dir && make install DESTDIR=../debian/tmp/
39
 
        dh install --after dh_auto_install --until dh_install
 
36
        dh install --until dh_install
40
37
        # Remove the Eqonomize! Handbook from the eqonomize package.
41
38
        rm -rf debian/eqonomize/usr/share/doc/kde
42
 
        dh install --before dh_compress
 
39
        dh install --remaining
 
40
        touch $@
 
41
 
 
42
override_dh_auto_install:
 
43
        cd build-dir && make install DESTDIR=../debian/tmp/
 
44
 
 
45
override_dh_compress:
43
46
        dh_compress -X.docbook
44
 
        dh install --after dh_compress
45
 
        touch $@
46
47
 
47
48
binary-arch: install
48
49
        dh binary-arch