~ubuntu-branches/ubuntu/wily/pmidi/wily

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Namuri
  • Date: 2007-07-17 02:32:20 UTC
  • Revision ID: james.westby@ubuntu.com-20070717023220-5u9l7foegp9klacp
Tags: 1.6.0-4
* New maintainer. (Closes: #429755)
* Switched packaging to cdbs. 

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
 
# This file is public domain software, originally written by Joey Hess. 
4
 
 
5
 
# Uncomment this to turn on verbose mode.
6
 
#export DH_VERBOSE=1
7
 
 
8
 
export CFLAGS = -Wall -g
9
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
10
 
        CFLAGS += -O0
11
 
else
12
 
        CFLAGS += -O2
13
 
endif
14
 
 
15
 
build: build-stamp
16
 
build-stamp:
17
 
        dh_testdir
18
 
 
19
 
        ln -sf /usr/share/misc/config.sub /usr/share/misc/config.guess .
20
 
        ./configure --prefix=/usr --mandir=/usr/share/man
21
 
        $(MAKE)
22
 
 
23
 
        touch build-stamp
24
 
 
25
 
clean:
26
 
        dh_testdir
27
 
        dh_testroot
28
 
        rm -f build-stamp
29
 
 
30
 
        [ ! -f Makefile ] || $(MAKE) distclean
31
 
        rm -f config.sub config.guess
32
 
 
33
 
        dh_clean
34
 
 
35
 
install: build
36
 
        dh_testdir
37
 
        dh_testroot
38
 
        dh_clean -k
39
 
        dh_installdirs
40
 
 
41
 
        $(MAKE) install DESTDIR=$(CURDIR)/debian/pmidi
42
 
 
43
 
# Build architecture-independent files here.
44
 
binary-indep: build install
45
 
 
46
 
# Build architecture-dependent files here.
47
 
binary-arch: build install
48
 
        dh_testdir
49
 
        dh_testroot
50
 
        dh_installchangelogs ChangeLog
51
 
        dh_installdocs
52
 
        dh_installmime
53
 
        dh_link
54
 
        dh_strip
55
 
        dh_compress
56
 
        dh_fixperms
57
 
        dh_installdeb
58
 
        dh_shlibdeps
59
 
        dh_gencontrol
60
 
        dh_md5sums
61
 
        dh_builddeb
62
 
 
63
 
binary: binary-indep binary-arch
64
 
.PHONY: build clean binary-indep binary-arch binary install
 
2
 
 
3
include /usr/share/cdbs/1/class/autotools.mk
 
4
include /usr/share/cdbs/1/rules/debhelper.mk
 
5