Tizen 2.1 base
[sdk/target/sdbd.git] / debian / rules
1 #!/usr/bin/make -f
2
3 UNAME := $(shell uname -sm)
4 ifneq (,$(findstring 86,$(UNAME)))
5         HOST_ARCH := x86
6 endif
7
8 configure: configure-stamp
9
10 configure-stamp:
11         dh_testdir
12         touch configure-stamp
13
14 build: build-stamp
15
16 build-stamp: configure-stamp
17         dh_testdir
18         $(MAKE)
19         touch build-stamp
20
21 install: build
22         dh_testdir
23         dh_testroot
24         $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
25
26 binary: build install
27         dh_testdir
28         dh_testroot
29 ifeq ($(HOST_ARCH),x86)
30         dh_install --sourcedir=debian/tmp
31 else
32         dh_install --sourcedir=debian/tmp -XS06sdbd
33 endif
34         dh_strip
35         dh_gencontrol
36         dh_md5sums
37         dh_builddeb
38
39 clean:
40         dh_testdir
41         rm -f build-stamp configure-stamp
42         $(MAKE) clean
43         dh_clean
44