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
|
#!/usr/bin/make -f
# -*- makefile -*-
# debian/rules file for the Debian/GNU Linux matwrap package
# Copyright (C) 2006 by Rafael Laboissiere <rafael@debian.org>
debusr := $(CURDIR)/debian/matwrap/usr
debshr := $(debusr)/share
debdoc := $(debshr)/doc/matwrap
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/makefile.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
DEB_MAKE_INSTALL_TARGET := PREFIX=$(debusr) install
cleanbuilddir/matwrap::
( cd share/matwrap/Examples/simple ; \
make clean )
build/matwrap::
# Run checks
( cd share/matwrap/Examples/simple ; \
make PERL="perl -I../.." octave ; \
echo "simple_stub; demo" | octave -qf )
install/matwrap::
# Put mandir in FSSTND-compliant location
mv $(debusr)/man $(debusr)/share
# Install examples
mv $(debshr)/matwrap/Examples $(debdoc)/examples
# Change $PREFIX of matwrap script, leaving only the trailing /usr
perl -p -i -e 's|/.*/debian/matwrap||' $(debusr)/bin/matwrap
# Remove zero-byte file (lintian warning)
rm -fv $(debdoc)/examples/simple/demo.t
|