1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
#!/usr/bin/make -f
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.
package=pvm
PVM_ARCH=$(shell lib/pvmgetarch)
version=$(shell expr `pwd` : '.*-\([0-9.]*\)')
version_major=$(shell expr `pwd` : '.*-\([0-9]*\).[0-9.]*')
build:
dh_testdir
$(MAKE) PVM_ROOT=`pwd` system
touch build
clean:
dh_testdir
dh_testroot
-rm -f build
-make PVM_ROOT=`pwd` clean
dh_clean
binary-indep: build
binary-arch: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
ln -s pvm debian/tmp/usr/doc/pvm-dev
make PVM_ROOT=`pwd` install-deb DESTDIR=`pwd`/debian/tmp
mv debian/tmp/usr/lib/pvm3/lib/$(PVM_ARCH)/libpvm3.so debian/tmp/usr/lib/libpvm3.so.$(version)
ln -s libpvm3.so.$(version) debian/tmp/usr/lib/libpvm3.so
dh_installdocs Readme Readme.Os2 Readme.Win32 Readme.mp
dh_installchangelogs -ppvm
dh_strip
dh_fixperms
-dh_installmanpages -ppvm-dev
dh_movefiles
ln -s libpvm3.so.$(version) debian/pvm/usr/lib/libpvm3.so.$(version_major)
dh_compress
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_makeshlibs
dh_md5sums
dh_builddeb
define checkdir
test -f debian/rules
endef
# Below here is fairly generic really
binary: binary-indep binary-arch
checkroot:
$(checkdir)
test root = "`whoami`"
.PHONY: binary binary-arch binary-indep clean checkroot
|