File: rules

package info (click to toggle)
python-dmidecode 3.12.3-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 952 kB
  • sloc: ansic: 7,962; xml: 744; python: 595; makefile: 85; sh: 68
file content (34 lines) | stat: -rwxr-xr-x 815 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
#!/usr/bin/make -f
PYTHON3  = $(shell py3versions -s)

# Not to get undefined symbol: dmixml_GetContent
export CFLAGS=${CFLAGS-} -std=gnu89

%:
	dh $@

execute_after_dh_auto_clean:
	$(MAKE) clean

override_dh_auto_build:
	set -e ;\
	for python in $(PYTHON3); do \
		$(MAKE) PY_BIN=$$python ; \
	done

override_dh_auto_install:
	set -e ;\
	for python in $(PYTHON3) ; do \
		$$python     src/setup.py     install_lib --install-dir $(CURDIR)/debian/python3-dmidecode/usr/lib/python3/dist-packages/ ; \
	done

override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
	set -e ;\
	for python in $(PYTHON3); do \
		$(MAKE) PY_BIN=$$python -C unit-tests test; \
	done
endif

override_dh_installdocs:
	dh_installdocs -A README doc/AUTHORS doc/changelog doc/README.types doc/AUTHORS.upstream doc/README.upstream