~ubuntu-branches/ubuntu/dapper/openthesaurus/dapper

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Rene Engelhard
  • Date: 2004-06-06 02:26:24 UTC
  • Revision ID: james.westby@ubuntu.com-20040606022624-ccf43n3unjhgf0rw
Tags: 20040606-1
new snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
#export DH_VERBOSE=1
 
4
 
 
5
# This has to be exported to make some magic below work.
 
6
export DH_OPTIONS
 
7
 
 
8
configure: configure-stamp
 
9
configure-stamp:
 
10
        dh_testdir
 
11
        touch configure-stamp
 
12
 
 
13
build: build-arch build-indep
 
14
 
 
15
build-arch: build-arch-stamp
 
16
build-arch-stamp: configure-stamp 
 
17
 
 
18
        touch build-arch-stamp
 
19
 
 
20
build-indep: build-indep-stamp
 
21
build-indep-stamp: configure-stamp 
 
22
 
 
23
        touch build-indep-stamp
 
24
 
 
25
clean:
 
26
        dh_testdir
 
27
        dh_testroot
 
28
        rm -f build-arch-stamp build-indep-stamp configure-stamp
 
29
 
 
30
        -$(MAKE) clean
 
31
        
 
32
        rm -f kword_thesaurus.txt thesaurus.txt
 
33
        dh_clean 
 
34
 
 
35
install: install-indep install-arch
 
36
install-indep:
 
37
        dh_testdir
 
38
        dh_testroot
 
39
        dh_clean -k -i 
 
40
        dh_installdirs -i
 
41
 
 
42
        cat kword_thesaurus.txt.gz | gunzip -c > kword_thesaurus.txt
 
43
        install -D -m644 kword_thesaurus.txt \
 
44
          $(CURDIR)/debian/openthesaurus-de-kword/usr/share/apps/thesaurus/thesaurus_de.txt
 
45
 
 
46
        cat thesaurus.txt.gz | gunzip -c > thesaurus.txt
 
47
        install -D -m644 thesaurus.txt \
 
48
          $(CURDIR)/debian/openthesaurus-de-text/usr/share/openthesaurus-de/thesaurus.txt
 
49
 
 
50
install-arch:
 
51
 
 
52
# Must not depend on anything. This is to be called by
 
53
# binary-arch/binary-indep
 
54
# in another 'make' thread.
 
55
binary-common:
 
56
        dh_testdir
 
57
        dh_testroot
 
58
        dh_installchangelogs 
 
59
        dh_installdocs
 
60
        dh_installexamples
 
61
        dh_installdebconf       
 
62
        dh_link
 
63
        dh_compress 
 
64
        dh_fixperms
 
65
        dh_installdeb
 
66
        dh_gencontrol
 
67
        dh_md5sums
 
68
        dh_builddeb
 
69
 
 
70
binary-indep: build-indep install-indep
 
71
        $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
 
72
 
 
73
binary-arch: build-arch install-arch
 
74
        #$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
 
75
 
 
76
binary: binary-arch binary-indep
 
77
.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure