Smartcard structure refactoring : server layer
[platform/core/connectivity/smartcard-service.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12 override_dh_auto_build:
13
14         cd $(CMAKE_BINARY_DIR)
15         dh_auto_build
16
17 override_dh_install:
18         
19         mkdir -p $(CURDIR)/debian/tmp/etc/init.d
20         mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/rc3.d/
21         mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/rc5.d/
22         
23         cp -af $(CURDIR)/debian/smartcard-service-server.init $(CURDIR)/debian/tmp/etc/init.d/smartcard-service-server
24         ln -s ../init.d/smartcard-service-server $(CURDIR)/debian/tmp/etc/rc.d/rc3.d/S79smartcard-service-server
25         ln -s ../init.d/smartcard-service-server $(CURDIR)/debian/tmp/etc/rc.d/rc5.d/S79smartcard-service-server
26         
27         dh_install
28         
29 override_dh_installinit:
30
31 %:
32         dh $@ 
33