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 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
|
#!/usr/bin/make -f
# Sample debian.rules file - for GNU Hello (1.3).
# Copyright 1994,1995 by Ian Jackson.
#
# Changed by Vincent Renardias <vincent@waw.com> on
# Wed, 9 Oct 1996 21:34:11 +0200 for the scilab package.
#
# converted to use the debhelper tools by
# Christian Meder <meder@isr.uni-stuttgart.de>
# Tue, 30 Jun 1998 21:31:46 +0200
# based on sample rules from Joey Hess
#
# I hereby give you perpetual unlimited permission to copy,
# modify and relicense this file, provided that you do not remove
# my name from the file itself. (I assert my moral right of
# paternity under the Copyright, Designs and Patents Act 1988.)
# This file may have to be extensively modified
# There used to be `source' and `diff' targets in this file, and many
# packages also had `changes' and `dist' targets. These functions
# have been taken over by dpkg-source, dpkg-genchanges and
# dpkg-buildpackage in a package-independent way, and so these targets
# are obsolete.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
DIRS = X11_defaults bin macros demos man util tcl
build: build-stamp
build-stamp:
dh_testdir
autoconf
./configure -with-tk
mkdir Doc
$(MAKE) world SCIDOC=`pwd`/Doc
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
-$(MAKE) distclean
-rm Doc
dh_clean
binary-indep: build
dh_testdir -i
dh_testroot -i
dh_clean -i -k
dh_installdirs -i
dh_installdocs -i
dh_installexamples -i
dh_installmenu -i
dh_installchangelogs -i CHANGES
dh_compress -i
dh_fixperms -i
dh_suidregister -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
binary-arch: build
dh_testdir -a
dh_testroot -a
dh_clean -a -k
(cd scripts ; make -f Make.debian pipo)
(cd scripts ; make -f Make.debian all)
dh_installdirs -a
cat man/programming/scilab.man | sed 's#.so ../sci.an#.so /usr/lib/scilab/man/sci.an#g' > debian/tmp/usr/man/man1/scilab.1
cp imp/NperiPos.ps debian/tmp/usr/lib/scilab/imp
cp -a scilab.star scilab.quit debian/tmp/usr/lib/scilab
cp routines/*.h debian/tmp/usr/lib/scilab/routines
cp routines/graphics/Math.h debian/tmp/usr/lib/scilab/routines/graphics
cp routines/graphics/Graphics.h debian/tmp/usr/lib/scilab/routines/graphics
cp routines/sun/link.h debian/tmp/usr/lib/scilab/routines/sun
cp pvm3/lib/pvm debian/tmp/usr/lib/scilab/pvm3/lib
cp pvm3/lib/pvmd debian/tmp/usr/lib/scilab/pvm3/lib
cp pvm3/lib/pvmtmparch debian/tmp/usr/lib/scilab/pvm3/lib
cp pvm3/lib/pvmgetarch debian/tmp/usr/lib/scilab/pvm3/lib
cp pvm3/lib/LINUX/pvmd3 debian/tmp/usr/lib/scilab/pvm3/lib/LINUX
cp pvm3/lib/LINUX/pvmgs debian/tmp/usr/lib/scilab/pvm3/lib/LINUX
cp X11_defaults/metanet.xpm debian/tmp/usr/X11R6/include/X11/pixmaps
cp X11_defaults/scilab.xpm debian/tmp/usr/X11R6/include/X11/pixmaps
set -e; \
for i in $(DIRS); \
do echo $$i ; cp -ar $$i/* debian/tmp/usr/lib/scilab/$$i ; \
done
-find debian/tmp -name Makefile -exec /bin/rm {} \;
# Put the startup script at the right place.
ln -s ../lib/scilab/bin/scilab debian/tmp/usr/bin/scilab
dh_installdocs -a
dh_installexamples -a
dh_installmenu -a
mv debian/tmp/usr/lib/scilab/demos/icse/README \
debian/tmp/usr/doc/scilab/README.demos.icse
mv debian/tmp/usr/lib/scilab/macros/m2sci/README \
debian/tmp/usr/doc/scilab/README.macros.m2sci
mv debian/tmp/usr/lib/scilab/macros/mtlb/README \
debian/tmp/usr/doc/scilab/README.macros.mtlb
cp routines/blas/README debian/tmp/usr/doc/scilab/README.blas
cp routines/dcd/README debian/tmp/usr/doc/scilab/README.dcd
mv debian/tmp/usr/lib/scilab/macros/percent/README \
debian/tmp/usr/doc/scilab/README.macros.percent
mv debian/tmp/usr/lib/scilab/macros/sci2for/README \
debian/tmp/usr/doc/scilab/README.macros.sci2for
mv debian/tmp/usr/lib/scilab/demos/npend/Maple/Readme.txt \
debian/tmp/usr/doc/scilab/README.demos.npend.Maple
mv debian/tmp/usr/lib/scilab/demos/velpic/README \
debian/tmp/usr/doc/scilab/README.demos.velpic
mv debian/tmp/usr/lib/scilab/demos/wheel2/Readme.txt \
debian/tmp/usr/doc/scilab/README.demos.wheel2
mv debian/tmp/usr/lib/scilab/demos/wheel2/Maple/Readme.txt \
debian/tmp/usr/doc/scilab/README.demos.wheel2.Maple
cp geci/README debian/tmp/usr/doc/scilab/README.geci
cp routines/default/README \
debian/tmp/usr/doc/scilab/README.routines.default
mv debian/tmp/usr/lib/scilab/man/README \
debian/tmp/usr/doc/scilab/README.man
mv debian/tmp/usr/lib/scilab/util/README \
debian/tmp/usr/doc/scilab/README.util
#
dh_installchangelogs -a CHANGES
dh_strip -a
dh_compress -a
dh_fixperms -a
dh_suidregister -a
dh_installdeb -a
dh_shlibdeps -a
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
# Below here is fairly generic really
binary: binary-indep binary-arch
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
.PHONY: build binary binary-arch binary-indep clean
|