~lidaobing/ibus/ibus-table-yong

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: LI Daobing
  • Date: 2009-05-01 09:18:35 UTC
  • Revision ID: lidaobing@gmail.com-20090501091835-qajyqwgia202g91i
debianize

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
# Sample debian/rules that uses debhelper.
 
4
# This file was originally written by Joey Hess and Craig Small.
 
5
# As a special exception, when this file is copied by dh-make into a
 
6
# dh-make output file, you may use that output file without restriction.
 
7
# This special exception was added by Craig Small in version 0.37 of dh-make.
 
8
 
 
9
# Uncomment this to turn on verbose mode.
 
10
#export DH_VERBOSE=1
 
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
 
20
        dh_testdir
 
21
        # Add here commands to configure the package.
 
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 \
 
29
                --enable-wubi86 --enable-extra-phrases \
 
30
                --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
 
31
                CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
 
32
 
 
33
 
 
34
build: build-stamp
 
35
 
 
36
build-stamp:  config.status
 
37
        dh_testdir
 
38
        $(MAKE)
 
39
        touch $@
 
40
 
 
41
clean:
 
42
        dh_testdir
 
43
        dh_testroot
 
44
        rm -f build-stamp 
 
45
        [ ! -f Makefile ] || $(MAKE) distclean
 
46
        rm -f config.sub config.guess
 
47
 
 
48
        dh_clean 
 
49
 
 
50
install: build
 
51
        dh_testdir
 
52
        dh_testroot
 
53
        dh_prep
 
54
        dh_installdirs
 
55
        $(MAKE) DESTDIR=$(CURDIR)/debian/ibus-table-wubi install
 
56
 
 
57
 
 
58
binary-arch: build install
 
59
 
 
60
binary-indep: build install
 
61
        dh_testdir
 
62
        dh_testroot
 
63
        dh_installchangelogs
 
64
        dh_installdocs README
 
65
        dh_installexamples
 
66
        dh_installman
 
67
        dh_lintian
 
68
        dh_link
 
69
        dh_strip
 
70
        dh_compress
 
71
        dh_fixperms
 
72
        dh_installdeb
 
73
        dh_shlibdeps
 
74
        dh_gencontrol
 
75
        dh_md5sums
 
76
        dh_builddeb
 
77
 
 
78
binary: binary-indep binary-arch
 
79
.PHONY: build clean binary-indep binary-arch binary install