~ubuntu-branches/ubuntu/raring/cowdancer/raring

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Junichi Uekawa
  • Date: 2005-11-23 14:08:51 UTC
  • Revision ID: james.westby@ubuntu.com-20051123140851-phiyvzz9yhtj4kjp
Tags: 0.7
* Work around stat change with coreutils 5.3.0 and later
* Fix testsuite
* COWDANCER_DEBUG environmental variable enables debug messages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# Sample debian/rules that uses debhelper.
 
3
# GNU copyright 1997 to 1999 by Joey Hess.
 
4
 
 
5
# Uncomment this to turn on verbose mode.
 
6
#export DH_VERBOSE=1
 
7
 
 
8
CFLAGS = -Wall -g
 
9
INSTALL = install
 
10
export INSTALL_FILE    = $(INSTALL) -p    -o root -g root  -m  644
 
11
export INSTALL_PROGRAM = $(INSTALL) -p    -o root -g root  -m  755
 
12
export INSTALL_SCRIPT  = $(INSTALL) -p    -o root -g root  -m  755
 
13
export INSTALL_DIR     = $(INSTALL) -p -d -o root -g root  -m  755
 
14
 
 
15
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
16
CFLAGS += -O0
 
17
else
 
18
CFLAGS += -O2
 
19
endif
 
20
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
21
INSTALL_PROGRAM += -s
 
22
endif
 
23
 
 
24
 
 
25
configure: configure-stamp
 
26
configure-stamp:
 
27
        dh_testdir
 
28
        touch configure-stamp
 
29
 
 
30
build: configure-stamp build-stamp
 
31
build-stamp:
 
32
        dh_testdir
 
33
        $(MAKE)
 
34
        #$(MAKE) check
 
35
        touch build-stamp
 
36
 
 
37
clean:
 
38
        dh_testdir
 
39
        dh_testroot
 
40
        rm -f build-stamp configure-stamp
 
41
        -$(MAKE) clean
 
42
        dh_clean
 
43
 
 
44
install: build
 
45
        dh_testdir
 
46
        dh_testroot
 
47
        dh_clean -k
 
48
        dh_installdirs
 
49
 
 
50
        # Add here commands to install the package into debian/dsh.
 
51
        $(MAKE) install DESTDIR=$(CURDIR)/debian/cowdancer
 
52
 
 
53
# Build architecture-independent files here.
 
54
binary-indep: build install
 
55
# We have nothing to do by default.
 
56
 
 
57
# Build architecture-dependent files here.
 
58
binary-arch: build install
 
59
        dh_testdir
 
60
        dh_testroot
 
61
        dh_installdocs NEWS
 
62
        dh_installexamples
 
63
        dh_installmenu
 
64
        dh_installman
 
65
        dh_installchangelogs ChangeLog
 
66
        dh_link
 
67
        dh_strip
 
68
        dh_shlibdeps
 
69
        dh_compress
 
70
        dh_fixperms
 
71
        dh_installdeb
 
72
        dh_gencontrol
 
73
        dh_md5sums
 
74
        dh_builddeb
 
75
 
 
76
binary: binary-indep binary-arch
 
77
.PHONY: build clean binary-indep binary-arch binary install configure