~ubuntu-branches/ubuntu/trusty/pmidi/trusty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Matej Vela
  • Date: 2006-04-24 22:12:53 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20060424221253-dox8r0gy0ixmw6ds
Tags: 1.6.0-1
* QA upload.
* New upstream release.  Closes: #272609.
* Package is orphaned (#361299); set maintainer to Debian QA Group.
* Automatically update config.sub and config.guess from autotools-dev.
  Closes: #355139.
* Switch to debhelper 5.
* debian/copyright, debian/watch: Update upstream URL.
  Closes: #272610.
* debian/copyright: Update FSF address.
* Conforms to Standards version 3.6.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
# Sample debian/rules that uses debhelper.
3
 
# GNU copyright 1997 to 1999 by Joey Hess.
 
3
# This file is public domain software, originally written by Joey Hess. 
4
4
 
5
5
# Uncomment this to turn on verbose mode.
6
6
#export DH_VERBOSE=1
7
7
 
8
 
# This is the debhelper compatability version to use.
9
 
export DH_COMPAT=3
10
 
 
 
8
export CFLAGS = -Wall -g
11
9
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
12
 
CFLAGS += -O0
13
 
endif
14
 
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
15
 
INSTALL_PROGRAM += -s
16
 
endif
17
 
 
18
 
 
19
 
configure: configure-stamp
20
 
configure-stamp:
21
 
        dh_testdir
22
 
        ./configure --prefix=/usr --mandir=\$${prefix}/share/man
23
 
 
24
 
        touch configure-stamp
25
 
 
26
 
build: configure-stamp build-stamp
 
10
        CFLAGS += -O0
 
11
else
 
12
        CFLAGS += -O2
 
13
endif
 
14
 
 
15
build: build-stamp
27
16
build-stamp:
28
17
        dh_testdir
29
18
 
 
19
        ln -sf /usr/share/misc/config.sub /usr/share/misc/config.guess .
 
20
        ./configure --prefix=/usr --mandir=/usr/share/man
30
21
        $(MAKE)
31
22
 
32
23
        touch build-stamp
34
25
clean:
35
26
        dh_testdir
36
27
        dh_testroot
37
 
        rm -f build-stamp configure-stamp
 
28
        rm -f build-stamp
38
29
 
39
 
        -$(MAKE) distclean
 
30
        [ ! -f Makefile ] || $(MAKE) distclean
 
31
        rm -f config.sub config.guess
40
32
 
41
33
        dh_clean
42
34
 
48
40
 
49
41
        $(MAKE) install DESTDIR=$(CURDIR)/debian/pmidi
50
42
 
51
 
 
52
43
# Build architecture-independent files here.
53
44
binary-indep: build install
54
 
# We have nothing to do by default.
55
45
 
56
46
# Build architecture-dependent files here.
57
47
binary-arch: build install
58
48
        dh_testdir
59
49
        dh_testroot
60
 
#       dh_installdebconf       
 
50
        dh_installchangelogs ChangeLog
61
51
        dh_installdocs
62
 
        dh_installexamples
63
 
        dh_installmenu
64
 
#       dh_installlogrotate
65
 
#       dh_installemacsen
66
 
#       dh_installpam
67
52
        dh_installmime
68
 
#       dh_installinit
69
 
        dh_installcron
70
 
        dh_installman
71
 
        dh_installinfo
72
 
#       dh_undocumented
73
 
        dh_installchangelogs ChangeLog
74
53
        dh_link
75
54
        dh_strip
76
55
        dh_compress
77
56
        dh_fixperms
78
 
#       dh_makeshlibs
79
57
        dh_installdeb
80
 
#       dh_perl
81
58
        dh_shlibdeps
82
59
        dh_gencontrol
83
60
        dh_md5sums
84
61
        dh_builddeb
85
62
 
86
63
binary: binary-indep binary-arch
87
 
.PHONY: build clean binary-indep binary-arch binary install configure
 
64
.PHONY: build clean binary-indep binary-arch binary install