~ubuntu-branches/ubuntu/dapper/eukleides/dapper

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Streph Treadway
  • Date: 2003-03-22 20:16:55 UTC
  • Revision ID: james.westby@ubuntu.com-20030322201655-3iqbebzd9jykh1z5
Tags: 0.9.2-3
* Added Replaces: xeukleides (<<0.9.2-1).  closes: #185811
* Conforms to Policy 3.5.9  No change to package necessary.

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=4
 
10
 
 
11
 
 
12
 
 
13
export CFLAGS = -W -Wall -g -c
 
14
 
 
15
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
16
        CFLAGS += -O0
 
17
else
 
18
        CFLAGS += -O2
 
19
endif
 
20
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
21
        INSTALL_PROGRAM += -s
 
22
endif
 
23
 
 
24
configure: configure-stamp
 
25
configure-stamp:
 
26
        dh_testdir
 
27
        # Add here commands to configure the package.
 
28
 
 
29
        touch configure-stamp
 
30
 
 
31
 
 
32
build: build-stamp
 
33
 
 
34
build-stamp: configure-stamp 
 
35
        dh_testdir
 
36
 
 
37
        # Add here commands to compile the package.
 
38
        $(MAKE)
 
39
        #/usr/bin/docbook-to-man debian/eukleides.sgml > eukleides.1
 
40
 
 
41
        uudecode html_doc ;
 
42
        tar -kxvvzf eukleides_html.tar.gz ;
 
43
 
 
44
        touch build-stamp
 
45
 
 
46
clean:
 
47
        dh_testdir
 
48
        dh_testroot
 
49
        rm -f build-stamp configure-stamp
 
50
 
 
51
        # Add here commands to clean up after the build process.
 
52
        -$(MAKE) clean
 
53
 
 
54
 
 
55
        rm -fR ./eukleides_html ;
 
56
        rm -f eukleides_html.tar.gz ;
 
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/eukleides.
 
67
        $(MAKE) install DESTDIR=$(CURDIR)/debian/eukleides
 
68
 
 
69
 
 
70
# Build architecture-independent files here.
 
71
binary-indep: build install
 
72
# We have nothing to do by default.
 
73
 
 
74
# Build architecture-dependent files here.
 
75
binary-arch: build install
 
76
        dh_testdir
 
77
        dh_testroot
 
78
        dh_installdocs
 
79
        dh_installexamples
 
80
        dh_installmenu
 
81
        dh_installman
 
82
        dh_installinfo eukleides.info
 
83
        dh_installchangelogs 
 
84
        dh_link
 
85
        dh_strip
 
86
        dh_compress
 
87
        dh_fixperms
 
88
        dh_installdeb
 
89
        dh_shlibdeps
 
90
        dh_gencontrol
 
91
        dh_md5sums
 
92
        dh_builddeb
 
93
 
 
94
binary: binary-indep binary-arch
 
95
.PHONY: build clean binary-indep binary-arch binary install configure