File: rules

package info (click to toggle)
python-dmidecode 3.12.2-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 908 kB
  • ctags: 549
  • sloc: ansic: 6,925; xml: 741; python: 598; makefile: 89; sh: 68
file content (35 lines) | stat: -rwxr-xr-x 845 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
#!/usr/bin/make -f
PACKAGE = $(shell dh_listpackages|head -n1)
PYTHON2  = $(shell pyversions -r)

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

%:
	dh $@ --with python2

override_dh_auto_clean:
	dh_auto_clean
	$(MAKE) clean

override_dh_auto_build:
	set -e ;\
	for python in $(PYTHON2) ; do \
		$$python src/setup.py build ;\
		$$python-dbg src/setup-dbg.py build ;\
	done

override_dh_auto_install:
	set -e ;\
	for python in $(PYTHON2) ; do \
		$$python     src/setup.py     install --root=debian/$(PACKAGE)     --install-layout=deb ;\
		$$python-dbg src/setup-dbg.py install --root=debian/$(PACKAGE)-dbg --install-layout=deb ;\
	done

override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
	$(MAKE) -C unit-tests test
endif

override_dh_installdocs:
	dh_installdocs --link-doc=$(PACKAGE)