3 # Uncomment this to turn on verbose mode.
11 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
17 LDFLAGS += -Wl,--rpath=$(PREFIX)/lib -Wl,--as-needed
19 configure: configure-stamp
22 # Add here commands to configure the package.
23 CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" cmake . -DCMAKE_INSTALL_PREFIX=$(PREFIX)
30 build-stamp: configure-stamp
33 # Add here commands to compile the package.
36 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
37 cat $$f > $${f%.in}; \
38 sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
39 sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \
47 rm -f build-stamp configure-stamp
49 # Add here commands to clean up after the build process.
54 rm -rf cmake_install.cmake
56 rm -rf install_manifest.txt
58 rm -rf ./restarter/CMakeCache.txt
59 rm -rf ./restarter/CMakeFiles
60 rm -rf ./restarter/cmake_install.cmake
61 rm -rf ./restarter/Makefile
62 rm -rf ./restarter/install_manifest.txt
63 rm -rf ./sys_event/CMakeCache.txt
64 rm -rf ./sys_event/CMakeFiles
65 rm -rf ./sys_event/cmake_install.cmake
66 rm -rf ./sys_event/Makefile
67 rm -rf ./sys_event/install_manifest.txt
68 rm -rf ./udev-rules/*.rules
70 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
83 # Add here commands to install the package into debian/tmp.
84 $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
86 mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/rc5.d/
87 ln -s ../init.d/system_server.sh $(CURDIR)/debian/tmp/etc/rc.d/rc5.d/S00system-server
89 # Build architecture-independent files here.
90 binary-indep: build install
91 # We have nothing to do by default.
93 # Build architecture-dependent files here.
94 binary-arch: build install
100 dh_install --sourcedir=debian/tmp
103 # dh_installlogrotate
114 dh_strip --dbg-package=system-server-bin-dbg
125 binary: binary-indep binary-arch
126 .PHONY: build clean binary-indep binary-arch binary install configure