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.
12 include debian/desktop.slp
13 include debian/control.slp
15 PKGDIR = debian/$(Package)
16 DESKTOPFILE = debian/desktop.slp
17 DESKTOPDIR = usr/share/install-info/application
21 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
27 configure: configure-stamp
30 # Add here commands to configure the package.
31 rm -rf Makefile CMakeCache.txt CMakeFiles cmake_install.cmake install_manifest.txt *.deb
32 cmake . -DCMAKE_INSTALL_PREFIX=/usr
33 rm -rf CMakeFiles/CompilerIdC*
39 build-stamp: configure-stamp
42 # Add here commands to compile the package.
44 #docbook-to-man debian/native-installer.sgml > native-installer.1
51 rm -f build-stamp configure-stamp
52 # Add here commands to clean up after the build process.
55 rm -rf Makefile CMakeCache.txt CMakeFiles cmake_install.cmake install_manifest.txt *.deb
56 cd backend && rm -rf Makefile CMakeCache.txt CMakeFiles cmake_install.cmake install_manifest.txt *.deb
57 rm -f backend/audit_spk.sh backend/extract_manifest.sh backend/install_spk.sh backend/uninstall_spk.sh backend/update_avail_spk.sh backend/find_package.sh
58 cd frontend && rm -rf Makefile CMakeCache.txt CMakeFiles cmake_install.cmake install_manifest.txt *.deb
59 cd frontend && rm -rf extract_manifest.sh install_spk.sh uninstall_spk.sh find_package.sh *.edj native-backend
60 cd common && rm -rf Makefile CMakeCache.txt CMakeFiles cmake_install.cmake install_manifest.txt *.deb *.a
61 cd frontend && rm -rf Makefile CMakeCache.txt CMakeFiles cmake_install.cmake install_manifest.txt *.deb
62 cd backend-lib && rm -rf Makefile CMakeCache.txt CMakeFiles cmake_install.cmake *.deb *.so
63 cd frontend/ui/res/locale && rm -rf Makefile CMakeCache.txt CMakeFiles cmake_install.cmake install_manifest.txt *.deb
64 rm -rf $(CURDIR)/debian/native-installer
72 # Add here commands to install the package into debian/native-installer.
73 $(MAKE) DESTDIR=$(CURDIR)/$(PKGDIR) install
74 # mkdir -p $(CURDIR)/$(PKGDIR)/$(DESKTOPDIR)
75 # cp $(DESKTOPFILE) $(CURDIR)/$(PKGDIR)/$(DESKTOPDIR)/$(Package).desktop
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
89 # cp $(DESKTOPFILE) $(CURDIR)/debian/native-installer/$(DESKTOPDIR)/$(Package).desktop
103 dh_strip --dbg-package=$(Package)-dbg
114 binary: binary-indep binary-arch
115 .PHONY: build clean binary-indep binary-arch binary install configure