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.
7
# Uncomment this to turn on verbose mode.
10
# This is the debhelper compatability version to use.
17
# Add here commands to compile the package.
22
$(MAKE) NPmpi MPI_INC=/usr/lib/lam/include MPI_INC1=/usr/lib/lam/include MPI_LIB=/usr/lib/lam/lib MPI_LLIB=-lmpi
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
30
cp netpipe.1 NPmpich.1
37
rm -f build-stamp install-stamp
39
# Add here commands to clean up after the build process.
41
rm -f NPtcp.1 NPlam.1 NPmpich.1 NPpvm.1
42
rm -f NPtcp NPlam NPmpich NPpvm
46
install: install-stamp
47
install-stamp: build-stamp
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
60
# Build architecture-independent files here.
61
binary-indep: build install
68
# dh_installemacsen -i
72
# dh_installmanpages -i
75
dh_installchangelogs -i
79
# You may want to make some executables suid here.
87
# Build architecture-dependent files here.
88
binary-arch: build install
95
# dh_installemacsen -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
105
dh_installchangelogs -a
110
# You may want to make some executables suid here.
121
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
124
.PHONY: build clean binary-indep binary-arch binary install