~ubuntu-branches/ubuntu/precise/unoconv/precise

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Vincent Bernat
  • Date: 2007-11-17 11:38:42 UTC
  • Revision ID: james.westby@ubuntu.com-20071117113842-3zll1i1nrmaslz5n
Tags: 0.3-2
Use update-alternatives to provide odt2txt, thanks to Michal Politowsk
(Closes: #451586).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
 
 
4
# Uncomment this to turn on verbose mode.
 
5
#export DH_VERBOSE=1
 
6
 
 
7
clean:
 
8
        dh_testdir
 
9
        dh_testroot
 
10
        rm -f build-stamp configure-stamp
 
11
 
 
12
        dh_clean 
 
13
 
 
14
install:
 
15
        dh_testdir
 
16
        dh_testroot
 
17
        dh_clean -k 
 
18
        dh_installdirs
 
19
 
 
20
        $(MAKE) DESTDIR=$(CURDIR)/debian/unoconv install install-links
 
21
        mv $(CURDIR)/debian/unoconv/usr/bin/odt2txt $(CURDIR)/debian/unoconv/usr/bin/odt2txt.unoconv
 
22
        # Add link to manual pages
 
23
        find debian/unoconv/usr/bin -name '*2*' | \
 
24
          while read f; do \
 
25
            dh_link usr/share/man/man1/unoconv.1 usr/share/man/man1/"`echo "$$f" | sed -e s#debian/unoconv/usr/bin/##`".1; \
 
26
          done
 
27
 
 
28
 
 
29
 
 
30
# Build architecture-independent files here.
 
31
binary-indep: build install
 
32
        dh_testdir
 
33
        dh_testroot
 
34
        dh_installchangelogs ChangeLog
 
35
        dh_installdocs
 
36
        dh_compress
 
37
        dh_fixperms
 
38
        dh_installdeb
 
39
        dh_gencontrol
 
40
        dh_md5sums
 
41
        dh_builddeb
 
42
 
 
43
# Build architecture-dependent files here.
 
44
binary-arch: build install
 
45
 
 
46
binary: binary-indep binary-arch
 
47
.PHONY: build clean binary-indep binary-arch binary install configure