~ubuntu-branches/debian/lenny/apertium-es-pt/lenny

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Francis Tyers
  • Date: 2007-10-22 16:27:44 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071022162744-sgqfgnpkaji8kkob
Tags: 1.0.3-2
Fixed Build-Depends (Closes: #446594)

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
# Uncomment this to turn on verbose mode.
10
10
#export DH_VERBOSE=1
11
 
CFLAGS = -Wall -g
12
 
 
13
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
14
 
        CFLAGS += -O0
15
 
else
16
 
        CFLAGS += -O2
17
 
endif
18
 
 
19
 
configure: configure-stamp
20
 
configure-stamp:
 
11
 
 
12
 
 
13
# These are used for cross-compiling and for saving the configure script
 
14
# from having to guess our platform (since we know it already)
 
15
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
16
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
17
 
 
18
 
 
19
config.status: configure
21
20
        dh_testdir
22
21
        # Add here commands to configure the package.
23
 
 
24
 
        touch configure-stamp
 
22
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
 
23
        cp -f /usr/share/misc/config.sub config.sub
 
24
endif
 
25
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
 
26
        cp -f /usr/share/misc/config.guess config.guess
 
27
endif
 
28
        ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
25
29
 
26
30
 
27
31
build: build-stamp
28
32
 
29
 
build-stamp: configure-stamp 
 
33
build-stamp:  config.status
30
34
        dh_testdir
31
35
 
32
36
        # Add here commands to compile the package.
37
41
clean:
38
42
        dh_testdir
39
43
        dh_testroot
40
 
        rm -f build-stamp configure-stamp
 
44
        rm -f build-stamp 
41
45
 
42
46
        # Add here commands to clean up after the build process.
43
 
        -$(MAKE) clean
 
47
        ! [ -f Makefile ] || $(MAKE) distclean
 
48
        rm -f config.sub config.guess
44
49
 
45
50
        dh_clean 
46
51
 
51
56
        dh_installdirs
52
57
 
53
58
        # Add here commands to install the package into debian/apertium-es-pt.
54
 
        $(MAKE) install DESTDIR=$(CURDIR)/debian/apertium-es-pt
55
 
 
56
 
        dh_link usr/share/apertium-es-pt /usr/share/apertium-1.0/pairs/es-pt
57
 
        dh_link usr/share/apertium-es-pt /usr/share/apertium-1.0/pairs/pt-es
 
59
        dh_installdirs -a usr/share/apertium/modes/
 
60
        $(MAKE) install prefix=$(CURDIR)/debian/apertium-es-pt/usr
 
61
        dh_installdirs -a usr/share/doc/apertium-es-pt/
 
62
        dh_install debian/copyright usr/share/doc/apertium-es-pt/
58
63
 
59
64
 
60
65
# Build architecture-independent files here.
65
70
binary-arch: build install
66
71
        dh_testdir
67
72
        dh_testroot
68
 
        dh_installchangelogs 
69
 
        dh_installdocs
 
73
        dh_installchangelogs ChangeLog
 
74
        dh_install
70
75
        dh_link
71
76
        dh_strip
72
77
        dh_compress
73
78
        dh_fixperms
74
79
        dh_installdeb
 
80
        dh_shlibdeps
75
81
        dh_gencontrol
76
82
        dh_md5sums
77
83
        dh_builddeb
 
84
        dh_clean -k
78
85
 
79
86
binary: binary-indep binary-arch
80
 
.PHONY: build clean binary-indep binary-arch binary install configure