~dobey/ubuntu/oneiric/libubuntuone/release-0110

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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/usr/bin/make -f

DEB_PYTHON_SYSTEM=pysupport
DEB_BUILDDIR := build
PY_VERSIONS = $(shell pyversions --requested debian/control)
export MONO_SHARED_DIR=$(CURDIR)

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools-vars.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

DEB_CONFIGURE_EXTRA_FLAGS += MONO_CSC=/usr/bin/mono-csc --enable-gtk-doc
API_VERSION = 0.1

DEB_DH_MAKESHLIBS_ARGS_libubuntuone-1.0-1 := -V 'libubuntuone-1.0-1 (>= 0.2.101)'

configure-stamp-%:
	mkdir build-$*
	cd build-$* && PYTHON=`which $*` $(DEB_CONFIGURE_SCRIPT_ENV) \
	$(DEB_CONFIGURE_SCRIPT) $(DEB_CONFIGURE_NORMAL_ARGS) \
                --srcdir=..
	touch $@

configure/python-ubuntuone:: $(addprefix configure-stamp-, $(PY_VERSIONS))

build-stamp-%:
	make -C build-$* PYTHON=`which $*`
	touch $@

build/python-ubuntuone:: $(addprefix build-stamp-, $(PY_VERSIONS))

install-stamp-%:
	make -C build-$* install DESTDIR=$(CURDIR)/debian/tmp PYTHON=`which $*`
	touch $@

install/python-ubuntuone:: $(addprefix install-stamp-, $(PY_VERSIONS))

binary-install/python-ubuntuone::
	dh_pysupport

binary-install/libubuntuone1.0-cil::
	dh_clistrip
	dh_clifixperms
	dh_makeclilibs -V
	dh_installcligac

binary-predeb/libubuntuone1.0-cil:: binary-fixup/libubuntuone-1.0-1
	dh_clideps -plibubuntuone1.0-cil

binary-predeb/gir1.0-ubuntuone-1.0::
	dh_girepository -pgir1.0-ubuntuone-1.0

configure-stamp:
	mkdir -p build
	cd build && $(DEB_CONFIGURE_SCRIPT) $(DEB_CONFIGURE_NORMAL_ARGS) $(DEB_CONFIGURE_EXTRA_FLAGS) --srcdir=..
	touch $@

configure/libubuntuone-1.0-1:: configure-stamp

build-stamp:
	cd build && make
	touch $@

build/libubuntuone-1.0-1:: build-stamp

install-stamp:
	cd build && make install DESTDIR=$(CURDIR)/debian/tmp
	touch $@

install/libubuntuone-1.0-1:: install-stamp

common-binary-predeb-arch:: list-missing

clean::
	-rm -rf build
	-rm -rf $(addprefix build-, $(PY_VERSIONS))
	-rm -rf $(addprefix configure-stamp-, $(PY_VERSIONS))
	-rm -rf $(addprefix build-stamp-, $(PY_VERSIONS))
	-rm -rf $(addprefix install-stamp-, $(PY_VERSIONS))