File: rules

package info (click to toggle)
pyodbc 4.0.22-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 1,644 kB
  • sloc: python: 8,502; cpp: 7,790; makefile: 34
file content (44 lines) | stat: -rwxr-xr-x 1,337 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk

build/python-pyodbc-dbg::
	set -e; \
	for i in $(shell pyversions -r); do \
		$$i-dbg ./setup.py build; \
	done

install/python-pyodbc-dbg::
	for i in $(shell pyversions -r); do \
	$$i-dbg ./setup.py install --root $(CURDIR)/debian/python-pyodbc-dbg; \
	done
	find debian/python-pyodbc-dbg \
        ! -type d ! -name '*_d.so' | xargs rm -f
	find debian/python-pyodbc-dbg -depth -empty -exec rmdir {} \;


binary-predeb/python-pyodbc-dbg::
	rm -rf debian/python-pyodbc-dbg/usr/share/doc/python-pyodbc-dbg
	ln -s python-pyodbc debian/python-pyodbc-dbg/usr/share/doc/python-pyodbc-dbg

build/python3-pyodbc-dbg::
	set -e; \
	for i in $(shell py3versions -r); do \
		$$i-dbg ./setup.py build; \
	done

install/python3-pyodbc-dbg::
	for i in $(shell py3versions -r); do \
	$$i-dbg ./setup.py install --root $(CURDIR)/debian/python3-pyodbc-dbg; \
	done
	find debian/python3-pyodbc-dbg \
        ! -type d ! -name 'pyodbc.cpython-3*dm*.so' | xargs rm -f
	find debian/python3-pyodbc-dbg -depth -empty -exec rmdir {} \;


binary-predeb/python3-pyodbc-dbg::
	rm -rf debian/python3-pyodbc-dbg/usr/share/doc/python3-pyodbc-dbg
	ln -s python3-pyodbc debian/python3-pyodbc-dbg/usr/share/doc/python3-pyodbc-dbg

clean::
	rm -rf build