File: rules

package info (click to toggle)
watchman 4.9.0-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,936 kB
  • sloc: cpp: 27,450; python: 6,534; java: 3,404; php: 3,257; ansic: 2,803; javascript: 1,116; makefile: 674; ruby: 364; sh: 124; xml: 102; lisp: 4
file content (38 lines) | stat: -rwxr-xr-x 1,123 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
#!/usr/bin/make -f
export DH_VERBOSE=1
export PYTHON=python3
export PYBUILD_NAME=pywatchman
export PYBUILD_SYSTEM=distutils
export PYBUILD_VERSIONS=3
export DEB_BUILD_MAINT_OPTIONS = hardening=+all reproducible=+all
export PY3VERSIONS = $(shell py3versions -r)

%:
	dh $@ --with python3

override_dh_autoreconf:
	dh_autoreconf -- ./autogen.sh

override_dh_auto_configure:
	dh_auto_configure -- --disable-statedir --enable-lenient --with-pcre=/usr/bin/pcre-config

override_dh_auto_build:
	dh_auto_build
	set -ex; for python in $(PY3VERSIONS); do \
		cd python && $$python setup.py build && cd ..; \
	done;

override_dh_auto_install:
	dh_auto_install
	set -ex; for python in $(PY3VERSIONS); do \
		cd python && $$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb && cd ..; \
	done;

# Remove generated files by autogen.sh too (which are usually distributed by upstream)
override_dh_auto_clean:
	dh_auto_clean
	rm -rf python/pywatchman.egg-info/
	rm -rf m4/
	rm -f compile ltmain.sh config.guess config.sub install-sh \
		missing depcomp test-driver
	rm -f Makefile.in aclocal.m4 config.h.in configure