File: rules

package info (click to toggle)
pykdumpfile 0.5.5.1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 296 kB
  • sloc: python: 2,607; ansic: 447; makefile: 17
file content (27 lines) | stat: -rwxr-xr-x 726 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
20
21
22
23
24
25
26
27
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# See debhelper(7) (uncomment to enable).
# Output every command that modifies files on the build system.
#export DH_VERBOSE = 1

export PYBUILD_NAME=pykdumpfile

%:
	dh $@ --buildsystem=pybuild

execute_before_dh_auto_configure:
	mkdir -p off/addrxlat
	mkdir -p off/kdumpfile
	mv addrxlat/defs_py2.py off/addrxlat/
	mv kdumpfile/defs_py2.py off/kdumpfile/

override_dh_auto_clean:
	echo Cleaning manually to avoid dependending on cffi
	rm -rf __pycache__
	rm -rf .pybuild
	rm -rf build
	test -d off && mv off/addrxlat/* addrxlat/ && rmdir off/addrxlat || true
	test -d off && mv off/kdumpfile/* kdumpfile/ && rmdir off/kdumpfile || true
	rmdir off || true