File: rules

package info (click to toggle)
python-opencascade-pywrap 0.0~git20250714210719.b608b60-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 12,992 kB
  • sloc: python: 1,622; pascal: 32; makefile: 13; sh: 1
file content (19 lines) | stat: -rwxr-xr-x 480 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

include /usr/share/dpkg/default.mk

%:
	dh $@ --buildsystem=pybuild

ifneq (,$(DEB_BUILD_OPTION_PARALLEL))
  PARALLEL=$(DEB_BUILD_OPTION_PARALLEL)
else
  PARALLEL=$$(nproc)
endif

execute_before_dh_auto_build:
	PARALLEL=$(PARALLEL) ./run.sh

execute_after_dh_fixperms:
	chmod -x $(CURDIR)/debian/python3-opencascade-pywrap/usr/lib/python*/dist-packages/bindgen/*
	chmod -x $(CURDIR)/debian/python3-opencascade-pywrap/usr/share/libocp/OCP/FindOpenCascade.cmake