Update device names
[platform/adaptation/intel_mfld/mmfw-sysconf-mfld-blackbay.git] / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6
7 configure: configure-stamp
8 configure-stamp:
9         dh_testdir
10         touch configure-stamp
11
12 build: build-stamp
13
14 build-stamp: configure-stamp 
15         dh_testdir
16         touch $@
17
18 clean:
19         dh_testdir
20         dh_testroot
21         rm -f build-stamp configure-stamp
22         dh_clean 
23
24 install: build
25         dh_testdir
26         dh_testroot
27         dh_clean -k 
28         dh_installdirs
29
30         mkdir -p $(CURDIR)/debian/tmp$(PREFIX)
31
32         # architecture
33         ifneq (, $(findstring arm, $(DEB_HOST_ARCH)))
34                 # ARM
35                 cp -af $(CURDIR)/mmfw-sysconf-cleansdk-target/*     $(CURDIR)/debian/mmfw-sysconf-cleansdk-target
36         else
37                 # OTHER
38                 cp -af $(CURDIR)/mmfw-sysconf-simulator/* $(CURDIR)/debian/mmfw-sysconf-simulator
39         endif
40
41 # Build architecture-independent files here.
42 binary-indep: build install
43 # We have nothing to do by default.
44
45 # Build architecture-dependent files here.
46 binary-arch: build install
47         dh_testdir 
48         dh_testroot 
49         dh_installchangelogs 
50         dh_installdocs 
51 #       dh_installexamples
52         dh_install --sourcedir=debian/tmp 
53 #       dh_installmenu
54 #       dh_installdebconf       
55 #       dh_installlogrotate
56 #       dh_installemacsen
57 #       dh_installpam
58 #       dh_installmime
59 #       dh_python
60 #       dh_installinit
61 #       dh_installcron
62 #       dh_installinfo
63 #       dh_installman
64 #       dh_link
65 #       dh_strip
66         dh_compress 
67         dh_fixperms 
68 #       dh_perl
69 #       dh_makeshlibs
70         dh_installdeb
71         dh_shlibdeps 
72         dh_gencontrol -s
73         dh_md5sums 
74         dh_builddeb -s
75
76 binary: binary-indep binary-arch
77 .PHONY: build clean binary-indep binary-arch binary install configure