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
|
#!/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.
SHELL=/bin/bash
package=python-numeric
i = ./debian/tmp
sofiles = _numpymodule.so lapack_lite.so umathmodule.so fast_umathmodule.so \
multiarraymodule.so fftpack.so ranlib.so
build: stamp-build
stamp-build: configure
dh_testdir
cd Numerical/Doc && uudecode NumericPython.GIF.uue
$(MAKE) -C Numerical OPT=-O2
touch stamp-build
configure: stamp-configure
stamp-configure:
dh_testdir
$(RM) stamp-configure
$(MAKE) -C Numerical -f Makefile.pre.in boot
touch stamp-configure
clean: configure
dh_testdir
dh_testroot
-rm -f stamp-*
-rm -f Numerical/Doc/NumericPython.GIF
-$(MAKE) -C Numerical clobber
-rm -f `find . -name "*~"`
-rm -f Numerical/Makefile
dh_clean
binary-indep: checkroot build
$(checkdir)
# There are no architecture-independent files to be uploaded
# generated by this package. If there were any they would be
# made here.
instdirs = usr/lib/python1.5/site-packages \
usr/include/python1.5 \
usr/doc/$(package)/Doc \
usr/doc/$(package)/Demo \
usr/doc/$(package)/Test \
usr/share/doc-base
binary-arch: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs $(instdirs)
install Numerical/*.so $(i)/usr/lib/python1.5/site-packages/
install -m 644 Numerical/Lib/*.py $(i)/usr/lib/python1.5/site-packages/
install -m 644 Numerical/Include/{arrayobject.h,ufuncobject.h} \
$(i)/usr/include/python1.5
install -m 644 Numerical/Doc/*.html Numerical/Doc/*.GIF \
$(i)/usr/doc/$(package)/Doc/
install -m 755 Numerical/Test/*.py $(i)/usr/doc/$(package)/Test/
install -m 755 Numerical/Demo/*.py $(i)/usr/doc/$(package)/Demo/
install -m 644 debian/doc-base $(i)/usr/share/doc-base/$(package)
dh_installdocs
dh_strip
dh_compress
find $(i)/usr/doc/$(package)/{Demo,Test} -name '*.gz' -exec gunzip {} \;
chmod a+x $(i)/usr/doc/$(package)/Demo/*
dh_fixperms
find $(i)/usr/doc/$(package)/{Demo,Test} -name '*.py' -exec chmod a+x {} \;
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_makeshlibs
dh_md5sums
dh_builddeb
binary: binary-arch
checkroot:
$(checkdir)
test root = "`whoami`"
.PHONY: binary binary-arch binary-indep clean checkroot
|