3 ## DO NOT MODIFY THIS AREA : BEGIN
5 # Uncomment this to turn on verbose mode.
8 # $(PKGDIR) is a package build directory to create a final .deb package .
9 #include debian/control.slp
12 ifneq (,$(filter ide,$(DEB_BUILD_OPTIONS)))
17 CONTROLFILE = debian/control.slp
18 CONTROLFILE_SRC = debian/control
22 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
28 build: pre-build configure
29 # Add here commands to compile the package.
33 cmake . -DCMAKE_INSTALL_PREFIX=${AppInstallPath} -DCMAKE_PROJECT=${Source}
34 rm -rf CMakeFiles/CompilerIdC*
35 # sed 's/^Package:.*$$/Package: $(Package)/' $(CONTROLFILE_SRC) > $(CONTROLFILE_SRC).tmp ; mv -f $(CONTROLFILE_SRC).tmp $(CONTROLFILE_SRC)
38 # Add here commands to clean up before the build process.
42 -find . -name "CMakeFiles" -exec rm -rf {} \;
43 -find . -name "CMakeCache.txt" -exec rm -rf {} \;
44 -find . -name "Makefile" -exec rm -rf {} \;
45 -find . -name "cmake_install.cmake" -exec rm -rf {} \;
46 -find . -name "install_manifest.txt" -exec rm -rf {} \;
47 -find . -name "*.pc" -exec rm -rf {} \;
48 -find . -name "*.so" -exec rm -rf {} \;
54 install: build pre-install
58 # Add here commands to install the package into $(PKGDIR).
59 $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
61 mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/init.d
62 install -c $(CURDIR)/syncmldm_mgr $(CURDIR)/debian/tmp/etc/rc.d/init.d
64 mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/rc3.d
65 ln -s ../init.d/syncmldm_mgr $(CURDIR)/debian/tmp/etc/rc.d/rc3.d/S91oma-dm-agent
67 mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/rc5.d
68 ln -s ../init.d/syncmldm_mgr $(CURDIR)/debian/tmp/etc/rc.d/rc5.d/S91oma-dm-agent
70 # Build architecture-dependent files here.
71 binary: install pre-binary
77 dh_install --sourcedir=debian/tmp
79 dh_strip --dbg-package=oma-dm-agent
89 .PHONY: build clean install binary
90 ## DO NOT MODIFY THIS AREA : END
92 ## DO NOT MODIFY OR DELETE TARGET.
94 # Add here commands to execute before the build process.
97 # Add here commands to execute before installing the binaries into $(PKGDIR).
100 # Add here commands to execute before creating a package.