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.
9 # Uncomment this to turn on verbose mode.
15 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
21 configure: configure-stamp
24 # Add here commands to configure the package.
31 build-stamp: configure-stamp
34 # Add here commands to compile the package.
36 #docbook-to-man debian/skippy-xd.sgml > skippy-xd.1
43 rm -f build-stamp configure-stamp
45 # Add here commands to clean up after the build process.
56 # Add here commands to install the package into debian/skippy-xd.
57 $(MAKE) DESTDIR=$(CURDIR)/debian/skippy-xd install
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
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/
78 # Build architecture-independent files here.
79 binary-indep: build install
80 # We have nothing to do by default.
82 # Build architecture-dependent files here.
83 binary-arch: build install
86 # dh_installchangelogs CHANGELOG
113 binary: binary-indep binary-arch
114 .PHONY: build clean binary-indep binary-arch binary install configure