add license file
[platform/adaptation/system-plugin-mount.git] / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 PREFIX ?= 
7 DATADIR ?= /opt
8
9 configure: configure-stamp
10 configure-stamp:
11         dh_testdir
12         # Add here commands to configure the package.
13         touch configure-stamp
14
15 build: build-stamp
16
17 build-stamp: configure-stamp 
18         dh_testdir
19
20         # Add here commands to compile the package.
21
22         for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
23                 cat $$f > $${f%.in}; \
24                 sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
25         done
26         touch $@
27
28 clean:
29         dh_testdir
30         dh_testroot
31         rm -f build-stamp configure-stamp
32
33         # Add here commands to clean up after the build process.
34 #       -$(MAKE) clean
35
36         for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
37                 rm -f $${f%.in}; \
38         done
39
40         dh_clean
41
42 install: build
43         dh_testdir
44         dh_testroot
45         dh_clean -k
46         dh_installdirs
47
48         mkdir -p $(CURDIR)/debian/tmp$(PREFIX)
49         mkdir -p debian/tmp/usr/share/system-plugin-slp
50         cp -a $(CURDIR)/etc debian/tmp/usr/share/system-plugin-slp
51         cp -a $(CURDIR)/usr debian/tmp
52         cp -a $(CURDIR)/bin debian/tmp
53         cp -a $(CURDIR)/lib debian/tmp
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