~ubuntu-branches/ubuntu/karmic/netpipe/karmic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2002-02-24 19:31:29 UTC
  • Revision ID: james.westby@ubuntu.com-20020224193129-gkvryf2brg3qgf5g
Tags: 2.4-4
* Varied long descriptions, Closes: #135533
* Newer standards

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
#-*- makefile -*-
 
3
# Made with the aid of dh_make, by Craig Small
 
4
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
 
5
# Also some stuff taken from debmake scripts, by Christoph Lameter.
 
6
 
 
7
# Uncomment this to turn on verbose mode.
 
8
#export DH_VERBOSE=1
 
9
 
 
10
# This is the debhelper compatability version to use.
 
11
export DH_COMPAT=1
 
12
 
 
13
build: build-stamp
 
14
build-stamp:
 
15
        dh_testdir
 
16
 
 
17
        # Add here commands to compile the package.
 
18
        $(MAKE) NPtcp
 
19
        cp netpipe.1 NPtcp.1
 
20
        $(MAKE) NPpvm
 
21
        cp netpipe.1 NPpvm.1
 
22
        $(MAKE) NPmpi MPI_INC=/usr/lib/lam/include MPI_INC1=/usr/lib/lam/include MPI_LIB=/usr/lib/lam/lib MPI_LLIB=-lmpi
 
23
        mv NPmpi NPlam
 
24
        cp netpipe.1 NPlam.1
 
25
        rm -f NPmpi.o MPI.o
 
26
        $(MAKE) NPmpi MPI_INC=$$(dpkg -L mpich |grep include$$ | head -1l) \
 
27
                MPI_INC1=$$(dpkg -L mpich | grep include$$ | head -2l | tail -1l) \
 
28
                MPI_LIB=$$(dpkg -L mpich | grep lib$$ | grep mpich) MPI_LLIB=-lmpich
 
29
        mv NPmpi NPmpich
 
30
        cp netpipe.1 NPmpich.1
 
31
 
 
32
        touch build-stamp
 
33
 
 
34
clean:
 
35
        dh_testdir
 
36
        dh_testroot
 
37
        rm -f build-stamp install-stamp
 
38
 
 
39
        # Add here commands to clean up after the build process.
 
40
        -$(MAKE) clean
 
41
        rm -f NPtcp.1 NPlam.1 NPmpich.1 NPpvm.1
 
42
        rm -f NPtcp NPlam NPmpich NPpvm
 
43
 
 
44
        dh_clean
 
45
 
 
46
install: install-stamp
 
47
install-stamp: build-stamp
 
48
        dh_testdir
 
49
        dh_testroot
 
50
        dh_clean -k
 
51
        dh_installdirs
 
52
 
 
53
        # Add here commands to install the package into debian/tmp.
 
54
#       $(MAKE) install DESTDIR=`pwd`/debian/tmp
 
55
        cp NPtcp NPlam NPmpich NPpvm `pwd`/debian/tmp/usr/bin
 
56
 
 
57
        dh_movefiles
 
58
        touch install-stamp
 
59
 
 
60
# Build architecture-independent files here.
 
61
binary-indep: build install
 
62
#       dh_testversion
 
63
        dh_testdir -i
 
64
        dh_testroot -i
 
65
        dh_installdocs -i
 
66
        dh_installexamples -i
 
67
        dh_installmenu -i
 
68
#       dh_installemacsen -i
 
69
#       dh_installpam -i
 
70
#       dh_installinit -i
 
71
        dh_installcron -i
 
72
#       dh_installmanpages -i
 
73
        dh_installinfo -i
 
74
#       dh_undocumented
 
75
        dh_installchangelogs -i 
 
76
        dh_link -i
 
77
        dh_compress -i
 
78
        dh_fixperms -i
 
79
        # You may want to make some executables suid here.
 
80
        dh_suidregister -i
 
81
        dh_installdeb -i
 
82
#       dh_perl -i
 
83
        dh_gencontrol -i
 
84
        dh_md5sums -i
 
85
        dh_builddeb -i
 
86
 
 
87
# Build architecture-dependent files here.
 
88
binary-arch: build install
 
89
#       dh_testversion
 
90
        dh_testdir -a
 
91
        dh_testroot -a
 
92
        dh_installdocs -a
 
93
        dh_installexamples -a
 
94
        dh_installmenu -a
 
95
#       dh_installemacsen -a
 
96
#       dh_installpam -a
 
97
#       dh_installinit -a
 
98
        dh_installcron -a
 
99
        dh_installmanpages -pnetpipe-lam NPtcp.1 NPmpich.1  NPpvm.1 netpipe.1
 
100
        dh_installmanpages -pnetpipe-pvm NPtcp.1 NPmpich.1 NPlam.1  netpipe.1
 
101
        dh_installmanpages -pnetpipe-tcp  NPmpich.1 NPlam.1 NPpvm.1 netpipe.1
 
102
        dh_installmanpages -pnetpipe-mpich NPtcp.1  NPlam.1 NPpvm.1 netpipe.1
 
103
        dh_installinfo -a
 
104
#       dh_undocumented
 
105
        dh_installchangelogs -a 
 
106
        dh_strip -a
 
107
        dh_link -a
 
108
        dh_compress -a
 
109
        dh_fixperms -a
 
110
        # You may want to make some executables suid here.
 
111
        dh_suidregister -a
 
112
        dh_installdeb -a
 
113
#       dh_makeshlibs -a
 
114
#       dh_perl -a
 
115
        dh_shlibdeps -a
 
116
        dh_gencontrol -a
 
117
        dh_md5sums -a
 
118
        dh_builddeb -a
 
119
 
 
120
source diff:
 
121
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
 
122
 
 
123
binary:  binary-arch
 
124
.PHONY: build clean binary-indep binary-arch binary install