Initialize Tizen 2.3
[framework/security/ca-certificates.git] / modules_mobile / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 PREFIX ?= /usr
7 DATADIR ?= /opt
8 CERTDIR ?= /opt/etc/ssl/
9
10 configure: configure-stamp
11 configure-stamp:
12         dh_testdir
13         # Add here commands to configure the package.
14         touch configure-stamp
15
16 build: build-stamp
17
18 build-stamp: configure-stamp 
19         dh_testdir
20
21         # Add here commands to compile the package.
22
23         for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
24                 cat $$f > $${f%.in}; \
25                 sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
26                 sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \
27         done
28
29         touch $@
30
31 clean:
32         dh_testdir
33         dh_testroot
34         rm -f build-stamp configure-stamp
35
36         # Add here commands to clean up after the build process.
37         -$(MAKE) clean
38
39 #       for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
40 #               rm -f $${f%.in}; \
41 #       done
42
43         dh_clean 
44
45 install: build
46         dh_testdir
47         dh_testroot
48         dh_clean -k 
49         dh_installdirs
50
51         mkdir -p $(CURDIR)/debian/tmp/$(CERTDIR)
52         cp -rf $(CURDIR)/certs debian/tmp/$(CERTDIR)
53
54
55 # Build architecture-independent files here.
56 binary-indep: build install
57 # We have nothing to do by default.
58
59 # Build architecture-dependent files here.
60 binary-arch: build install
61         dh_testdir
62         dh_testroot
63         dh_installchangelogs 
64         dh_installdocs
65         dh_installexamples
66         dh_install --sourcedir=debian/tmp
67 #       dh_installmenu
68 #       dh_installdebconf       
69 #       dh_installlogrotate
70 #       dh_installemacsen
71 #       dh_installpam
72 #       dh_installmime
73 #       dh_python
74 #       dh_installinit
75 #       dh_installcron
76 #       dh_installinfo
77         dh_installman
78         dh_link
79 #       dh_strip
80         dh_compress
81         dh_fixperms
82 #       dh_perl
83         dh_makeshlibs
84         dh_installdeb
85         dh_shlibdeps
86         dh_gencontrol
87         dh_md5sums
88         dh_builddeb
89
90 binary: binary-indep binary-arch
91 .PHONY: build clean binary-indep binary-arch binary install configure