File: rules

package info (click to toggle)
pygccjit 0.4-12.1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 396 kB
  • sloc: python: 551; makefile: 140
file content (23 lines) | stat: -rwxr-xr-x 509 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
#!/usr/bin/make -f

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

export PYBUILD_DESTDIR_python3=debian/python3-gccjit/

%:
	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_auto_clean:
	dh_auto_clean
	rm -f *.exe gccjit/*.so gccjit/gccjit.c
	rm -rf doc/_build