~ubuntu-branches/ubuntu/karmic/ucarp/karmic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Eric Evans
  • Date: 2004-12-24 12:39:30 UTC
  • Revision ID: james.westby@ubuntu.com-20041224123930-9qnzcd6o5j0jjjvm
Tags: 1.1-2
Patched to correct a bug that caused upscript to also be applied
when state changed to BACKUP, if --dowscript was passed before
--upscript, (Closes: #284891). Thanks Michail Bachmann
<michail.bachmann@cms.hu-berlin.de>

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# Uncomment this to turn on verbose mode.
4
4
#export DH_VERBOSE=1
5
5
 
 
6
include /usr/share/dpatch/dpatch.make
6
7
 
7
8
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
8
9
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
19
20
        INSTALL_PROGRAM += -s
20
21
endif
21
22
 
22
 
config.status: configure
 
23
config.status: patch-stamp configure
23
24
        dh_testdir
24
25
 
25
26
        CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
27
28
 
28
29
build: build-stamp
29
30
 
30
 
build-stamp:  config.status
 
31
build-stamp: config.status
31
32
        dh_testdir
32
33
 
33
34
        $(MAKE)
35
36
 
36
37
        touch build-stamp
37
38
 
38
 
clean:
 
39
clean: unpatch
39
40
        dh_testdir
40
41
        dh_testroot
41
42
        rm -f build-stamp 
 
43
        rm -f ucarp.8
42
44
 
43
45
        -$(MAKE) distclean
44
46
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
48
50
        cp -f /usr/share/misc/config.guess config.guess
49
51
endif
50
52
 
51
 
 
52
53
        dh_clean 
53
54
 
54
55
install: build
68
69
binary-arch: build install
69
70
        dh_testdir
70
71
        dh_testroot
71
 
        dh_installchangelogs
72
 
        dh_installdocs README
73
 
        dh_installexamples debian/vipup.sh debian/vipdown.sh
 
72
        dh_installchangelogs ChangeLog
 
73
        dh_installinit
 
74
        dh_installdocs README AUTHORS NEWS
 
75
        dh_installexamples examples/linux/vip-down.sh examples/linux/vip-up.sh
74
76
        dh_installman ucarp.8
75
77
        dh_strip
76
78
        dh_compress