~ubuntu-branches/ubuntu/precise/tspc/precise

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): أحمد المحمودي (Ahmed El-Mahmoudy)
  • Date: 2008-12-06 14:09:28 UTC
  • mfrom: (4.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20081206140928-q6lgtg4e0kybuj5q
Tags: 2.1.1-8ubuntu1
* Merge from Debian unstable, remaining changes (LP: #305124):
  - Make sure ipv6 module is loaded.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
include /usr/share/cdbs/1/rules/debhelper.mk
4
 
include /usr/share/cdbs/1/rules/utils.mk
5
 
include /usr/share/cdbs/1/class/makefile.mk
6
 
 
7
 
clean::
 
3
DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 
4
 
 
5
include /usr/share/quilt/quilt.make
 
6
 
 
7
build: build-stamp
 
8
build-stamp: $(QUILT_STAMPFN)
 
9
        dh_testdir
 
10
 
 
11
        $(MAKE) target=$(DEB_HOST_ARCH_OS)
 
12
 
 
13
        touch build-stamp
 
14
 
 
15
clean: clean-patched unpatch
 
16
clean-patched: $(QUILT_STAMPFN)
 
17
        dh_testdir
 
18
        dh_testroot
 
19
 
 
20
        $(MAKE) clean target=$(DEB_HOST_ARCH_OS)
8
21
        rm -rf bin
9
 
 
10
 
install/tspc::
 
22
        dh_clean
 
23
 
 
24
install: build
 
25
        dh_testdir
 
26
        dh_testroot
 
27
        dh_prep
 
28
        dh_installdirs
 
29
 
 
30
        $(MAKE) install target=$(DEB_HOST_ARCH_OS) installdir=$(CURDIR)/debian/tmp
 
31
 
 
32
binary-arch: install
 
33
        dh_testdir
 
34
        dh_testroot
 
35
        dh_install
 
36
        dh_installdebconf
 
37
        dh_installdocs
 
38
        dh_installexamples -XMakefile
 
39
        dh_installinit -r -- start 41 S . stop 35 0 6 .
 
40
        dh_installman
 
41
        dh_installchangelogs 
11
42
        dh_installppp --name=0tspc
12
 
 
13
 
 
14
 
 
15
 
DEB_MAKE_BUILD_TARGET   = all     target=linux
16
 
DEB_MAKE_CLEAN_TARGET   = clean   target=linux
17
 
DEB_MAKE_INSTALL_TARGET = install target=linux installdir=$(CURDIR)/debian/tmp
18
 
 
19
 
 
20
 
DEB_UPDATE_RCD_PARAMS   = "start 41 S . stop 35 0 6 ."
21
 
DEB_FIXPERMS_EXCLUDE    = tspc.conf
 
43
        dh_installifupdown
 
44
        dh_installlogcheck
 
45
        dh_strip
 
46
        dh_compress
 
47
        dh_fixperms -Xtspc.conf
 
48
        dh_installdeb
 
49
        dh_shlibdeps
 
50
        dh_gencontrol
 
51
        dh_md5sums
 
52
        dh_builddeb
 
53
 
 
54
binary-indep: install
 
55
 
 
56
binary: binary-arch binary-indep
 
57
.PHONY: build clean binary-indep binary-arch binary install