~ubuntu-branches/debian/sid/gmobilemedia/sid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Michal Čihař
  • Date: 2007-09-11 14:52:05 UTC
  • Revision ID: james.westby@ubuntu.com-20070911145205-afts8a4jks7rni31
Tags: 0.4+dfsg-2
* Include python-gammu info when reporting bug.
* Fix menu section.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
 
 
4
# Uncomment this to turn on verbose mode.
 
5
#export DH_VERBOSE=1
 
6
 
 
7
include /usr/share/dpatch/dpatch.make
 
8
 
 
9
CFLAGS = -Wall -g
 
10
 
 
11
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
12
        CFLAGS += -O0
 
13
else
 
14
        CFLAGS += -O2
 
15
endif
 
16
 
 
17
build: build-stamp
 
18
 
 
19
build-stamp: patch-stamp
 
20
        dh_testdir
 
21
 
 
22
        touch $@
 
23
 
 
24
clean: unpatch
 
25
        dh_testdir
 
26
        dh_testroot
 
27
        rm -f build-stamp
 
28
 
 
29
        dh_clean 
 
30
 
 
31
install: build
 
32
        dh_testdir
 
33
        dh_testroot
 
34
        dh_clean -k 
 
35
        dh_installdirs
 
36
        install -m755 -d $(CURDIR)/debian/gmobilemedia/usr/share/bug/gmobilemedia
 
37
        install -m644 debian/bug.control  $(CURDIR)/debian/gmobilemedia/usr/share/bug/gmobilemedia/control
 
38
 
 
39
# Build architecture-independent files here.
 
40
binary-indep: build install
 
41
# We have nothing to do by default.
 
42
 
 
43
# Build architecture-dependent files here.
 
44
binary-arch: build install
 
45
        dh_testdir
 
46
        dh_testroot
 
47
        dh_installchangelogs 
 
48
        dh_installdocs AUTHORS
 
49
        dh_installexamples
 
50
 
 
51
        cp debian/gmobilemedia.sh gmobilemedia
 
52
        chmod +x gmobilemedia
 
53
        dh_install
 
54
        rm gmobilemedia
 
55
 
 
56
        dh_installmenu
 
57
        dh_installman debian/gmobilemedia.1
 
58
        dh_link
 
59
        dh_strip
 
60
        dh_compress
 
61
        dh_fixperms
 
62
        dh_pycentral
 
63
        dh_installdeb
 
64
        dh_shlibdeps
 
65
        dh_gencontrol
 
66
        dh_md5sums
 
67
        dh_builddeb
 
68
 
 
69
binary: binary-indep binary-arch
 
70
.PHONY: build clean binary-indep binary-arch binary install configure