~vcs-imports/cdemu/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
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/make -f
# -*- makefile -*-


#export DH_VERBOSE=1
export DH_ALWAYS_EXCLUDE="CVS:.svn"

export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)

CONFIGURE_FLAGS = --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)


build:
	test -x autogen.sh && ./autogen.sh
	dh build --with autotools_dev --before auto_configure
	dh_auto_configure -- --enable-session-bus-service --disable-system-bus-service $(CONFIGURE_FLAGS)
	dh build --after auto_configure

clean:
	dh clean --with autotools_dev

install: build
	dh install

binary-indep: install
# We have nothing to do by default.

binary-arch: install
	dh binary-arch --before strip
	dh_strip --dbg-package=cdemu-daemon-dbg
	dh binary-arch --after strip

binary: binary-indep binary-arch

.PHONY: build clean install binary-indep binary-arch binary