~ubuntu-branches/ubuntu/trusty/surfraw/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Christian Surchi
  • Date: 2002-03-02 23:54:34 UTC
  • Revision ID: james.westby@ubuntu.com-20020302235434-z1g6eg32gqpkxjzh
Tags: 1.0.7-1
* New upstream release 
* New debian/rules with DH_COMPAT=3 too
* Elvi: linuxdoc renamed to slinuxdoc
        translate renamed to stranslate
* Removed unuseful scripts in debian directory
* Removed emacs settings in changelog

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# Sample debian/rules that uses debhelper.
 
3
# GNU copyright 1997 to 1999 by Joey Hess.
 
4
 
 
5
# Uncomment this to turn on verbose mode.
 
6
#export DH_VERBOSE=1
 
7
 
 
8
# This is the debhelper compatibility version to use.
 
9
export DH_COMPAT=3
 
10
 
 
11
# These are used for cross-compiling and for saving the configure script
 
12
# from having to guess our platform (since we know it already)
 
13
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
14
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
15
 
 
16
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 
17
        CFLAGS += -g
 
18
endif
 
19
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
20
        INSTALL_PROGRAM += -s
 
21
endif
 
22
 
 
23
configure: configure-stamp
 
24
configure-stamp:
 
25
        dh_testdir
 
26
        # Add here commands to configure the package.
 
27
        ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr -sysconfdir=/etc --mandir=\$${prefix}/share/man
 
28
 
 
29
        touch configure-stamp
 
30
 
 
31
build: build-stamp
 
32
 
 
33
build-stamp: configure-stamp 
 
34
        dh_testdir
 
35
 
 
36
        # Add here commands to compile the package.
 
37
        $(MAKE) 
 
38
        #/usr/bin/docbook-to-man debian/surfraw.sgml > surfraw.1
 
39
 
 
40
        touch build-stamp
 
41
 
 
42
clean:
 
43
        dh_testdir
 
44
        dh_testroot
 
45
        rm -f build-stamp configure-stamp
 
46
 
 
47
        # Add here commands to clean up after the build process.
 
48
 
 
49
        -$(MAKE) distclean
 
50
 
 
51
        # $(MAKE) distclean
 
52
        # -test -r /usr/share/misc/config.sub && \
 
53
        #   -cp -f /usr/share/misc/config.sub config.sub
 
54
        # -test -r /usr/share/misc/config.guess && \
 
55
        #   -cp -f /usr/share/misc/config.guess config.guess
 
56
 
 
57
 
 
58
        dh_clean
 
59
 
 
60
install: build
 
61
        dh_testdir
 
62
        dh_testroot
 
63
        dh_clean -k
 
64
        dh_installdirs
 
65
 
 
66
        # Add here commands to install the package into debian/surfraw.
 
67
        # $(MAKE) install prefix=$(CURDIR)/debian/surfraw/usr
 
68
        $(MAKE) install prefix=`pwd`/debian/surfraw/usr sysconfdir=`pwd`/debian/surfraw/etc
 
69
        mv `pwd`/debian/surfraw/usr/bin/translate `pwd`/debian/surfraw/usr/bin/stranslate
 
70
 
 
71
# Build architecture-independent files here.
 
72
binary-indep: build install
 
73
# We have nothing to do by default.
 
74
 
 
75
# Build architecture-dependent files here.
 
76
binary-arch: build install
 
77
        dh_testdir
 
78
        dh_testroot
 
79
#       dh_installdebconf       
 
80
        dh_installdocs
 
81
#       dh_installexamples
 
82
#       dh_installmenu
 
83
#       dh_installlogrotate
 
84
#       dh_installemacsen
 
85
#       dh_installpam
 
86
#       dh_installmime
 
87
#       dh_installinit
 
88
#       dh_installcron
 
89
        dh_installman debian/surfraw.1  
 
90
#       dh_installinfo
 
91
#       dh_undocumented
 
92
        dh_installchangelogs ChangeLog
 
93
        dh_link
 
94
        dh_strip
 
95
        dh_compress
 
96
        dh_fixperms
 
97
#       dh_makeshlibs
 
98
        dh_installdeb
 
99
#       dh_perl
 
100
        dh_shlibdeps
 
101
        dh_gencontrol
 
102
        dh_md5sums
 
103
        dh_builddeb
 
104
 
 
105
binary: binary-indep binary-arch
 
106
.PHONY: build clean binary-indep binary-arch binary install configure