3 # Sample debian/rules that uses debhelper.
4 # GNU copyright 1997 to 1999 by Joey Hess.
6 # Uncomment this to turn on verbose mode.
9 # These are used for cross-compiling and for saving the configure script
10 # from having to guess our platform (since we know it already)
11 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
14 CFLAGS = -Wall -g -mcpu=arm926ej-s
16 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
21 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
25 config.status: configure
27 # Add here commands to configure the package.
28 CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \
29 --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man \
30 --infodir=\$${prefix}/share/info --with-maemo
38 build-stamp: config.status
41 # Add here commands to compile the package.
50 # Add here commands to clean up after the build process.
62 # Add here commands to install the package
63 mkdir -p $(CURDIR)/debian/tmp/usr
64 mkdir -p $(CURDIR)/debian/tmp/usr/share/applications/hildon
65 mkdir -p $(CURDIR)/debian/tmp/usr/share/icons/hicolor/26x26/hildon
66 mkdir -p $(CURDIR)/debian/tmp/usr/share/icons/hicolor/40x40/hildon
67 mkdir -p $(CURDIR)/debian/tmp/usr/share/icons/hicolor/scalable/hildon
68 cp $(CURDIR)/src/tuner26.png $(CURDIR)/debian/tmp/usr/share/icons/hicolor/26x26/hildon/pkg_tuner.png
69 cp $(CURDIR)/src/tuner40.png $(CURDIR)/debian/tmp/usr/share/icons/hicolor/40x40/hildon/pkg_tuner.png
70 cp $(CURDIR)/src/tuner64.png $(CURDIR)/debian/tmp/usr/share/icons/hicolor/scalable/hildon/pkg_tuner.png
71 cp $(CURDIR)/tuner.desktop $(CURDIR)/debian/tmp/usr/share/applications/hildon/tuner.desktop
72 mkdir -p $(CURDIR)/debian/tmp/usr/bin
73 cp $(CURDIR)/src/tuner $(CURDIR)/debian/tmp/usr/bin
74 strip $(CURDIR)/debian/tmp/usr/bin/tuner
76 # Build architecture-independent files here.
77 binary-indep: build install
78 # We have nothing to do by default.
80 # Build architecture-dependent files here.
81 binary-arch: build install
94 binary: binary-indep binary-arch
95 .PHONY: build clean binary-indep binary-arch binary install configure