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 cd backend-lib && rm -rf Makefile CMakeCache.txt CMakeFiles cmake_install.cmake install_manifest.txt *.deb
58 rm -f backend/install_rpm_package.sh backend/install_rpm_package_with_dbpath_ro.sh backend/install_rpm_package_with_dbpath_rw.sh backend/uninstall_rpm_package.sh backend/upgrade_rpm_package.sh backend/upgrade_rpm_package_with_dbpath_ro.sh backend/upgrade_rpm_package_with_dbpath_rw.sh backend/query_rpm__package.sh backend/cpio_rpm_package.sh backend/cpio_rpm_package_update_xml.sh backend/coretpk_update_xml.sh backend/rpm_update_xml.sh
59 cd frontend && rm -rf Makefile CMakeCache.txt CMakeFiles cmake_install.cmake install_manifest.txt *.deb *.sh rpm-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 po && rm -rf Makefile CMakeCache.txt CMakeFiles cmake_install.cmake install_manifest.txt *.deb *.mo
63 rm -rf $(CURDIR)/debian/rpm-installer
64 rm -rf $(CURDIR)/debian/rpm-installer-dbg
72 # Add here commands to install the package into debian/rpm-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