File: rules

package info (click to toggle)
pygccjit 0.4-11
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 392 kB
  • sloc: python: 551; makefile: 145
file content (29 lines) | stat: -rwxr-xr-x 799 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
#!/usr/bin/make -f

export CC = gcc-10
export LDSHARED = gcc-10 -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro

export PYBUILD_DESTDIR_python3=debian/python3-gccjit/
export PYBUILD_DESTDIR_python3-dbg=debian/python3-gccjit-dbg/

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

override_dh_auto_build:
	dh_auto_build
ifneq (,$(filter python-gccjit-doc, $(shell dh_listpackages)))
	$(MAKE) -C doc html
endif

override_dh_auto_test:
	-dh_auto_test

override_dh_strip:
	dh_strip -ppython3-gccjit --dbg-package=python3-gccjit-dbg
	rm -rf debian/python3-gccjit-dbg/usr/share/doc/python3-gccjit-dbg
	ln -s python3-gccjit debian/python3-gccjit-dbg/usr/share/doc/python3-gccjit-dbg

override_dh_auto_clean:
	dh_auto_clean
	rm -f *.exe gccjit/*.so gccjit/gccjit.c
	rm -rf doc/_build