File: rules

package info (click to toggle)
python-alignlib 0.1.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 100 kB
  • sloc: python: 64; makefile: 13
file content (19 lines) | stat: -rwxr-xr-x 448 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
#!/usr/bin/make -f

export DH_VERBOSE = 1

export PYBUILD_NAME=python-alignlib

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_build:
	if [ ! -r src/alignlib/_core.c ] || [ src/alignlib/__core.pyx -nt src/alignlib/__core.c ]; then \
		echo "I: Regenerating __core.c file" ; \
		cython3 -3 -w src/alignlib _core.pyx ; \
	fi
	dh_auto_build

override_dh_auto_clean:
	dh_auto_clean
	rm -rf src/alignlib.egg-info/ src/alignlib/_core.c