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
|
#!/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=python-netcdf
i = ./debian/tmp
sofiles = netcdfmodule.so
build: stamp-build
stamp-build: configure
dh_testdir
$(MAKE) OPT=-O2
touch stamp-build
configure: stamp-configure
stamp-configure:
dh_testdir
$(RM) stamp-configure
$(MAKE) -f Makefile.pre.in boot
touch stamp-configure
clean:
dh_testdir
dh_testroot
-[ -f Makefile ] && $(MAKE) clobber
-rm -f Makefile stamp-* test.nc
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)
binary-arch: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs $(instdirs)
install netcdfmodule.so $(i)/usr/lib/python1.5/site-packages
install -m 644 netcdfmodule.h $(i)/usr/include/python1.5
install -m 755 netcdf_demo.py $(i)/usr/doc/$(package)
install -m 644 README demomodule.c $(i)/usr/doc/$(package)
dh_installdocs
dh_strip
dh_compress
find $(i)/usr/doc/$(package) -name '*.py.gz' -exec gunzip {} \;
dh_fixperms
chmod a+x $(i)/usr/doc/$(package)/*.py
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_makeshlibs
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: binary binary-arch binary-indep clean checkroot
|