~ubuntu-branches/ubuntu/feisty/aptoncd/feisty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Proença
  • Date: 2007-02-02 14:00:59 UTC
  • Revision ID: james.westby@ubuntu.com-20070202140059-0wapw2czowbasor9
Tags: 0.0.99+svn20070202-0ubuntu1
Initial release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
 
 
4
#export DH_VERBOSE=1
 
5
 
 
6
CFLAGS = -Wall -g
 
7
 
 
8
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
9
        CFLAGS += -O0
 
10
else
 
11
        CFLAGS += -O2
 
12
endif
 
13
 
 
14
configure: configure-stamp
 
15
configure-stamp:
 
16
        dh_testdir
 
17
        touch configure-stamp
 
18
 
 
19
 
 
20
build: build-stamp
 
21
 
 
22
build-stamp: configure-stamp 
 
23
        dh_testdir
 
24
 
 
25
        $(MAKE)
 
26
        #docbook-to-man debian/aptoncd.sgml > aptoncd.1
 
27
 
 
28
        touch $@
 
29
 
 
30
clean:
 
31
        dh_testdir
 
32
        dh_testroot
 
33
        rm -f build-stamp configure-stamp
 
34
 
 
35
        -$(MAKE) clean
 
36
 
 
37
        dh_clean 
 
38
 
 
39
install: build
 
40
        dh_testdir
 
41
        dh_testroot
 
42
        dh_clean -k 
 
43
        dh_installdirs
 
44
 
 
45
        $(MAKE) install DESTDIR=$(CURDIR)/debian/aptoncd
 
46
 
 
47
 
 
48
binary-indep: build install
 
49
        dh_testdir
 
50
        dh_testroot
 
51
        dh_installchangelogs 
 
52
        dh_installdocs
 
53
        dh_installexamples
 
54
        dh_pysupport
 
55
        dh_installman
 
56
        dh_desktop
 
57
        dh_iconcache
 
58
        dh_link
 
59
        dh_strip
 
60
        dh_compress
 
61
        dh_fixperms
 
62
        dh_installdeb
 
63
        dh_shlibdeps
 
64
        dh_gencontrol
 
65
        dh_md5sums
 
66
        dh_builddeb
 
67
 
 
68
binary-arch: build install
 
69
 
 
70
binary: binary-indep binary-arch
 
71
.PHONY: build clean binary-indep binary-arch binary install configure