~ubuntu-branches/ubuntu/raring/picprog/raring

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Koichi Akabe
  • Date: 2011-12-03 10:08:38 UTC
  • mfrom: (4.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20111203100838-f05iyixkqjdh2byd
Tags: 1.9.1-2
* debian/control
  - changed priority from extra to optional
  - narrowed environments: linux-any kfreebsd-any

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
2
3
# Sample debian/rules that uses debhelper.
3
 
# GNU copyright 1997 to 1999 by Joey Hess.
 
4
#
 
5
# This file was originally written by Joey Hess and Craig Small.
 
6
# As a special exception, when this file is copied by dh-make into a
 
7
# dh-make output file, you may use that output file without restriction.
 
8
# This special exception was added by Craig Small in version 0.37 of dh-make.
 
9
#
 
10
# Modified to make a template file for a multi-binary package with separated
 
11
# build-arch and build-indep targets  by Bill Allombert 2001
4
12
 
5
13
# Uncomment this to turn on verbose mode.
6
14
#export DH_VERBOSE=1
7
15
 
8
 
 
9
 
 
10
 
 
11
 
CFLAGS = -Wall -g
12
 
 
13
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
14
 
        CFLAGS += -O0
15
 
else
16
 
        CFLAGS += -O2
17
 
endif
18
 
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
19
 
        INSTALL_PROGRAM += -s
20
 
endif
21
 
 
22
 
configure: configure-stamp
23
 
configure-stamp: patch
24
 
        dh_testdir
25
 
        # Add here commands to configure the package.
26
 
 
27
 
        touch configure-stamp
28
 
 
29
 
 
30
 
build: build-stamp
31
 
 
32
 
build-stamp: configure-stamp 
33
 
        dh_testdir
34
 
 
35
 
        # Add here commands to compile the package.
36
 
        $(MAKE)
37
 
        #/usr/bin/docbook-to-man debian/picprog.sgml > picprog.1
38
 
        
39
 
        touch build-stamp
40
 
 
41
 
clean:  unpatch
42
 
        dh_testdir
43
 
        dh_testroot
44
 
        rm -f build-stamp configure-stamp
45
 
 
46
 
        # Add here commands to clean up after the build process.
47
 
        $(MAKE) clean
48
 
 
49
 
        dh_clean
50
 
 
51
 
patch: patch-stamp
52
 
patch-stamp:
53
 
        dpatch apply-all
54
 
        dpatch cat-all >patch-stamp
55
 
unpatch:
56
 
        dpatch deapply-all
57
 
        rm -rf patch-stamp debian/patched
58
 
 
59
 
install: build
60
 
        dh_testdir
61
 
        dh_testroot
62
 
        dh_clean -k
63
 
        dh_installdirs
64
 
 
65
 
        # Add here commands to install the package into debian/picprog.
66
 
        # $(MAKE) install DESTDIR=$(CURDIR)/debian/picprog
67
 
        install -c -o 0 -g 0 -m 755 picprog     ./debian/picprog/usr/bin/
68
 
        install -c -o 0 -g 0 -m 644 *.html      ./debian/picprog/usr/share/doc/picprog/html
69
 
        install -c -o 0 -g 0 -m 644 *.png       ./debian/picprog/usr/share/doc/picprog/html
70
 
#       install -c -o 0 -g 0 -m 644 *.jpg       ./debian/picprog/usr/share/doc/picprog/html     
71
 
 
72
 
# Build architecture-independent files here.
73
 
binary-indep: build install
74
 
# We have nothing to do by default.
75
 
 
76
 
# Build architecture-dependent files here.
77
 
binary-arch: build install
78
 
        dh_testdir
79
 
        dh_testroot
80
 
        dh_installchangelogs 
81
 
        dh_installdocs
82
 
        dh_installexamples
83
 
#       dh_install
84
 
#       dh_installmenu
85
 
#       dh_installdebconf       
86
 
#       dh_installlogrotate
87
 
#       dh_installemacsen
88
 
#       dh_installpam
89
 
#       dh_installmime
90
 
#       dh_installinit
91
 
#       dh_installcron
92
 
#       dh_installinfo
93
 
        dh_installman picprog.1
94
 
        dh_link
95
 
        dh_strip
96
 
        dh_compress
97
 
        dh_fixperms
98
 
#       dh_perl
99
 
#       dh_python
100
 
#       dh_makeshlibs
101
 
        dh_installdeb
102
 
        dh_shlibdeps
103
 
        dh_gencontrol
104
 
        dh_md5sums
105
 
        dh_builddeb
106
 
 
107
 
binary: binary-indep binary-arch
108
 
.PHONY: build clean binary-indep binary-arch binary install configure
 
16
# This has to be exported to make some magic below work.
 
17
export DH_OPTIONS
 
18
 
 
19
 
 
20
%:
 
21
        dh $@