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 {} \;
50 -rm -rf ./oma-ds-agent
57 install: build pre-install
61 # Add here commands to install the package into $(PKGDIR).
62 $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
64 mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/init.d
65 install -c $(CURDIR)/syncmld_mgr $(CURDIR)/debian/tmp/etc/rc.d/init.d
67 mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/rc3.d
68 ln -s ../init.d/syncmld_mgr $(CURDIR)/debian/tmp/etc/rc.d/rc3.d/S91oma-ds-agent
70 mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/rc5.d
71 ln -s ../init.d/syncmld_mgr $(CURDIR)/debian/tmp/etc/rc.d/rc5.d/S91oma-ds-agent
73 # Build architecture-dependent files here.
74 binary: install pre-binary
80 dh_install --sourcedir=debian/tmp
82 dh_strip --dbg-package=oma-ds-agent
92 .PHONY: build clean install binary
93 ## DO NOT MODIFY THIS AREA : END
95 ## DO NOT MODIFY OR DELETE TARGET.
97 # Add here commands to execute before the build process.
100 # Add here commands to execute before installing the binaries into $(PKGDIR).
103 # Add here commands to execute before creating a package.