File: rules

package info (click to toggle)
cpuset 1.6.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 724 kB
  • sloc: python: 2,509; sh: 107; makefile: 93
file content (21 lines) | stat: -rwxr-xr-x 630 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
#!/usr/bin/make -f

# Unset the environment variables set by dpkg-buildpackage. (This is
# necessary because distutils is brittle with compiler/linker flags
# set. Specifically, packages using f2py will break without this.)
unexport CPPFLAGS
unexport CFLAGS
unexport CXXFLAGS
unexport FFLAGS
unexport LDFLAGS

export PYBUILD_NAME=cpuset

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_install:
	mkdir -p $(CURDIR)/debian/cpuset/usr/bin
	mv $(CURDIR)/debian/python3-cpuset/usr/bin/cset $(CURDIR)/debian/cpuset/usr/bin
	rm -rf $(CURDIR)/debian/python3-cpuset/usr/share/doc/cpuset \
		$(CURDIR)/debian/python3-cpuset/usr/bin