~ubuntu-branches/ubuntu/trusty/agrep/trusty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2006-07-05 13:29:00 UTC
  • mfrom: (3.1.1 dapper)
  • Revision ID: james.westby@ubuntu.com-20060705132900-j24rz8zdk4xqdmoz
Tags: 4.17-3
* New email address.
* Some packaging style changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# Sample debian/rules that uses debhelper.
3
2
 
4
3
# Uncomment this to turn on verbose mode.
5
4
#export DH_VERBOSE=1
6
5
 
 
6
include /usr/share/dpatch/dpatch.make
 
7
 
 
8
CFLAGS = -Wall -g
 
9
 
 
10
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
11
        CFLAGS += -O0
 
12
else
 
13
        CFLAGS += -O2
 
14
endif
 
15
 
7
16
build: build-stamp
8
 
 
9
 
build-stamp:
 
17
build-stamp: patch
10
18
        dh_testdir
11
19
 
12
 
        # Add here commands to compile the package.
13
 
        $(MAKE)
 
20
        # Building package
 
21
        CFLAGS="$(CFLAGS)" $(MAKE)
14
22
 
15
23
        touch build-stamp
16
24
 
17
 
clean:
 
25
clean: unpatch
18
26
        dh_testdir
19
27
        dh_testroot
20
28
        rm -f build-stamp
21
29
 
22
 
        # Add here commands to clean up after the build process.
 
30
        # Cleaning package
23
31
        -$(MAKE) clean
24
 
        rm -rf agrep
25
32
 
26
 
        dh_clean 
 
33
        dh_clean
27
34
 
28
35
install: build
29
36
        dh_testdir
30
37
        dh_testroot
31
 
        dh_clean -k 
 
38
        dh_clean -k
32
39
        dh_installdirs
33
40
 
34
 
        # Add here commands to install the package into debian/agrep.
35
 
        install -m 755 agrep $(CURDIR)/debian/agrep/usr/bin
 
41
        # Installing package
 
42
        install -D -m 0755 agrep debian/agrep/usr/bin/agrep
36
43
 
37
 
# Build architecture-independent files here.
38
44
binary-indep: build install
39
 
# We have nothing to do by default.
40
45
 
41
 
# Build architecture-dependent files here.
42
46
binary-arch: build install
43
47
        dh_testdir
44
48
        dh_testroot
45
49
        dh_installchangelogs agrep.chronicle
46
50
        dh_installdocs
47
51
        dh_install
48
 
        dh_installman agrep.1
 
52
        dh_installman
49
53
        dh_link
50
54
        dh_strip
51
55
        dh_compress