~canonical-launchpad-branches/launchpad-buildd/trunk

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
#
# Copyright 2009-2017 Canonical Ltd.  
# 
# This software is licensed under the GNU Affero General Public License version
# 3 (see the file LICENSE).

export PYBUILD_NAME := lpbuildd

export LIBDIR := $(shell python -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_lib())')

%:
	dh $@ --with=python2 --buildsystem=pybuild

override_dh_auto_build:
	dh_auto_build
	python buildd-genconfig --template=template-buildd-slave.conf \
	--arch=i386 --port=8221 --name=default --host=buildd.buildd \
		> buildd-slave-example.conf

override_dh_auto_install:
	dh_auto_install
	# This should be split into a testable library and a wrapper.
	chmod +x debian/python-lpbuildd/$(LIBDIR)/lpbuildd/check_implicit_pointer_functions.py

override_dh_builddeb:
	dh_builddeb -- -Zgzip