File: rules

package info (click to toggle)
python-netcdf 1.03-3
  • links: PTS
  • area: main
  • in suites: potato, slink
  • size: 216 kB
  • ctags: 214
  • sloc: ansic: 1,906; makefile: 48; python: 42
file content (65 lines) | stat: -rwxr-xr-x 1,445 bytes parent folder | download
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
pv=1.5

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/python$(pv)/site-packages \
	usr/include/python$(pv) \
	usr/doc/$(package)/examples

binary-arch: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs $(instdirs)

	install netcdfmodule.so $(i)/usr/lib/python$(pv)/site-packages
	install -m 644 netcdfmodule.h $(i)/usr/include/python$(pv)
	install -m 755 netcdf_demo.py $(i)/usr/doc/$(package)/examples
	install -m 644 demomodule.c $(i)/usr/doc/$(package)/examples

	dh_installdocs README
	dh_installchangelogs
	dh_strip
	dh_compress -X.py -X.c
	dh_fixperms
	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