~ubuntu-branches/ubuntu/utopic/batmand/utopic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Holger Levsen
  • Date: 2007-11-26 09:10:49 UTC
  • Revision ID: james.westby@ubuntu.com-20071126091049-jlz2q6pmz0syzzqm
Tags: 0.2-2
* debian/copyright: fixed the link for batmands licence pointing to the full
  text of the GPL2
* debian/copyright: relicenced the packaging to be GPL2 or (at your option)
  any later version - Wesleys agreement to this per
  <6f0dd0c00711252021t66b848b5i57078175aee5c248@mail.gmail.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
# Sample debian/rules that uses debhelper.
 
4
# This file was originally written by Joey Hess and Craig Small.
 
5
# As a special exception, when this file is copied by dh-make into a
 
6
# dh-make output file, you may use that output file without restriction.
 
7
# This special exception was added by Craig Small in version 0.37 of dh-make.
 
8
 
 
9
# Uncomment this to turn on verbose mode.
 
10
#export DH_VERBOSE=1
 
11
 
 
12
include /usr/share/dpatch/dpatch.make
 
13
 
 
14
INSTALL=/usr/bin/install
 
15
 
 
16
CFLAGS = -Wall -g
 
17
 
 
18
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
19
        CFLAGS += -O0
 
20
else
 
21
        CFLAGS += -O2
 
22
endif
 
23
 
 
24
configure: configure-stamp
 
25
 
 
26
configure-stamp: patch-stamp
 
27
        dh_testdir
 
28
        # Add here commands to configure the package.
 
29
 
 
30
        touch configure-stamp
 
31
 
 
32
 
 
33
build: build-stamp
 
34
 
 
35
build-stamp: configure-stamp 
 
36
        dh_testdir
 
37
 
 
38
        # Add here commands to compile the package.
 
39
        $(MAKE)
 
40
        #docbook-to-man debian/batmand.sgml > batmand.1
 
41
 
 
42
        touch $@
 
43
 
 
44
clean: unpatch
 
45
        dh_testdir
 
46
        dh_testroot
 
47
        rm -f build-stamp configure-stamp
 
48
 
 
49
        # Add here commands to clean up after the build process.
 
50
        $(MAKE) clean
 
51
 
 
52
        dh_clean 
 
53
 
 
54
install: build
 
55
        dh_testdir
 
56
        dh_testroot
 
57
        dh_clean -k 
 
58
        dh_installdirs
 
59
 
 
60
        # Add here commands to install the package into debian/batmand.
 
61
        $(MAKE) DESTDIR=$(CURDIR)/debian/batmand install
 
62
        $(INSTALL) -m 0644 -D  $(CURDIR)/debian/batmand-default $(CURDIR)/debian/batmand/etc/default/batmand
 
63
 
 
64
 
 
65
# Build architecture-independent files here.
 
66
binary-indep: build install
 
67
# We have nothing to do by default.
 
68
 
 
69
# Build architecture-dependent files here.
 
70
binary-arch: build install
 
71
        dh_testdir
 
72
        dh_testroot
 
73
        dh_installchangelogs CHANGELOG
 
74
        dh_installdocs
 
75
        dh_installexamples
 
76
#       dh_install
 
77
        dh_installinit
 
78
        dh_installman
 
79
        dh_link
 
80
        dh_strip
 
81
        dh_compress
 
82
        dh_fixperms
 
83
        dh_installdeb
 
84
        dh_shlibdeps
 
85
        dh_gencontrol
 
86
        dh_md5sums
 
87
        dh_builddeb
 
88
 
 
89
binary: binary-indep binary-arch
 
90
.PHONY: build clean binary-indep binary-arch binary install configure