cosmetic replace tab by space
[deb_libcec.git] / debian / rules
CommitLineData
abbca718 1#!/usr/bin/make -f
354ded4d
LOK
2# debian package for libcec
3# Copyright Pulse-Eight 2011
abbca718
LOK
4
5# Uncomment this to turn on verbose mode.
e1a123a8 6#export DH_VERBOSE=1
abbca718 7
354ded4d
LOK
8DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
9ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
10 confflags += --build=$(DEB_HOST_GNU_TYPE)
11else
12 confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
13endif
14
abbca718
LOK
15%:
16 dh $@
354ded4d
LOK
17
18override_dh_clean:
19 rm -rf build
20 rm -rf debian/libcec
21 rm -rf debian/libcec-dev
22 dh_clean
23
24override_dh_auto_clean:
25 dh_clean
26
27override_dh_auto_configure:
28 [ -d build ] || mkdir build
29 cd build && ../configure $(confflags) CFLAGS="$(CFLAGS)" \
30 LDFLAGS="$(LDFLAGS)" --prefix=/usr
31
32override_dh_auto_build:
33 $(MAKE) -C build
34
35override_dh_install:
36 $(MAKE) -C build DESTDIR=$(CURDIR)/debian/libcec install-exec
37 $(MAKE) -C build DESTDIR=$(CURDIR)/debian/libcec-dev install-data
38 mv -v $(CURDIR)/debian/libcec/usr/lib/*.a $(CURDIR)/debian/libcec-dev/usr/lib/.
39 mv -v $(CURDIR)/debian/libcec/usr/lib/*.la $(CURDIR)/debian/libcec-dev/usr/lib/.