tsst
[skippy-xd] / 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
13 CFLAGS = -Wall -g
14
15 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
16         CFLAGS += -O0
17 else
18         CFLAGS += -O2
19 endif
20
21 configure: configure-stamp
22 configure-stamp:
23         dh_testdir
24         # Add here commands to configure the package.
25
26         touch configure-stamp
27
28
29 build: build-stamp
30
31 build-stamp: configure-stamp  
32         dh_testdir
33
34         # Add here commands to compile the package.
35         $(MAKE)
36         #docbook-to-man debian/skippy-xd.sgml > skippy-xd.1
37
38         touch $@
39
40 clean: 
41         dh_testdir
42         dh_testroot
43         rm -f build-stamp configure-stamp
44
45         # Add here commands to clean up after the build process.
46         $(MAKE) clean
47
48         dh_clean 
49
50 install: build
51         dh_testdir
52         dh_testroot
53         dh_clean -k 
54         dh_installdirs
55
56         # Add here commands to install the package into debian/skippy-xd.
57         $(MAKE) DESTDIR=$(CURDIR)/debian/skippy-xd install
58
59 #       dh_installdirs
60         mkdir -p $(CURDIR)/debian/skippy-xd/usr/share/skippy-xd
61         mkdir -p $(CURDIR)/debian/skippy-xd/etc/init.d/
62         mkdir -p $(CURDIR)/debian/skippy-xd/home/user
63         mkdir -p $(CURDIR)/debian/skippy-xd/DEBIAN
64
65         cp -Ra $(CURDIR)/skippy-xd.rc-default \
66                 $(CURDIR)/debian/skippy-xd/home/user/.skippy-xd.rc
67         cp -a $(CURDIR)/skippy-bg* \
68                 $(CURDIR)/debian/skippy-xd/usr/share/skippy-xd/
69         cp -a $(CURDIR)/skippy-xd_maemo.init.sh \
70                 $(CURDIR)/debian/skippy-xd/etc/init.d/skippy-xd_maemo
71         chown user:users  $(CURDIR)/debian/skippy-xd/home/user/.skippy-xd.rc
72 #       chmod 666 $(CURDIR)/debian/skippy-xd/home/user/.skippy-xd.rc
73         chmod +x  $(CURDIR)/debian/skippy-xd/etc/init.d/skippy-xd_maemo
74         cp -a  $(CURDIR)/debian/skippy-xd.control $(CURDIR)/debian/skippy-xd/DEBIAN/control
75         cp -a  $(CURDIR)/debian/compat $(CURDIR)/debian/skippy-xd/DEBIAN/
76
77
78 # Build architecture-independent files here.
79 binary-indep: build install
80 # We have nothing to do by default.
81
82 # Build architecture-dependent files here.
83 binary-arch: build install
84         dh_testdir
85         dh_testroot
86 #       dh_installchangelogs CHANGELOG
87 #       dh_installdocs
88 #       dh_installexamples
89 #       dh_install
90 #       dh_installmenu
91 #       dh_installdebconf       
92 #       dh_installlogrotate
93 #       dh_installemacsen
94 #       dh_installpam
95 #       dh_installmime
96 #       dh_python
97 #       dh_installinit
98 #       dh_installcron
99 #       dh_installinfo
100 #       dh_installman
101         dh_link
102         dh_strip
103 #       dh_compress
104         dh_fixperms
105 #       dh_perl
106 #       dh_makeshlibs
107         dh_installdeb
108         dh_shlibdeps
109         dh_gencontrol
110         dh_md5sums
111         dh_builddeb
112
113 binary: binary-indep binary-arch
114 .PHONY: build clean binary-indep binary-arch binary install configure