2
# Based on the sample rules file generated by dh_make.
4
PYVERS=$(shell pyversions -vr)
6
build: $(PYVERS:%=build-python%)
11
# Build the python modules.
12
python$* setup.py build
20
# Clean up after the build process.
21
python$* setup.py clean
23
rm -f splat/__init__.pyc
28
install: build $(PYVERS:%=install-python%)
36
# Install the package into debian/splatd.
37
python$* setup.py install --root=$(CURDIR)/debian/splatd --install-scripts=/usr/sbin
39
# Install configuration file template for postinst script
40
install -m 0644 debian/splat.conf.in debian/splatd/usr/share/splatd/splat.conf.in
42
# Build architecture-dependent files here.
43
binary-arch: build install
44
# We have nothing to do by default.
46
# Build architecture-independent files here.
47
binary-indep: build install
51
# Install splat manual
52
cp -a docs/xhtml/* debian/splatd/usr/share/doc/splatd/html/
54
dh_installexamples splat.conf
66
binary: binary-indep binary-arch
67
.PHONY: build clean binary-indep binary-arch binary install