File: rules

package info (click to toggle)
python-f2py 2.45.241%2B1926-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 956 kB
  • ctags: 700
  • sloc: python: 8,720; ansic: 929; fortran: 109; makefile: 48; f90: 34
file content (68 lines) | stat: -rwxr-xr-x 1,732 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
66
67
68
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# This file is public domain software, originally written by Joey Hess. 
# Changes for f2py by José Fonseca

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

PYVERS:= $(shell pyversions -v -rdebian/control)

build: build-stamp
build-stamp:
	dh_testdir
	rst2html docs/usersguide/index.txt > docs/usersguide/index.html
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	rm -rf build
	find . -name "*.pyc" -exec rm {} \;
	dh_clean

install-ver:
install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs -A
	python setup.py install --prefix debian/python-f2py/usr --no-compile

# Build architecture-independent files here.
binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs -A docs/HISTORY.txt
	dh_installdocs -A docs/README.txt
	dh_installexamples 
	dh_link
	dh_compress
	dh_fixperms

	# Add man pages
	mkdir -m 755 -p debian/python-f2py/usr/share/man/man1;                  \
	cp -p f2py.1 debian/python-f2py/usr/share/man/man1/f2py.1;           \
	gzip -9 debian/python-f2py/usr/share/man/man1/f2py.1;                \



	# Fix executable permissions
	set -e; for i in `find debian -mindepth 2 -type f ! -perm 755`; do \
		if head -1 $$i | grep -q '^#!' ; then                    \
	    		chmod +x $$i;                                    \
		fi ;                                                     \
	done
	chmod a-x  debian/python-f2py/usr/share/doc/python-f2py/usersguide/setup_example.py 
	dh_pycentral
	dh_python -p python-f2py
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch: 

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install