mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-21 17:10:35 +00:00
On some build environment we may want to limit number of parallel jobs since ninja-build runs ncpus jobs by default, it may too many since g++ eats very huge memory. So support --jobs <njobs> just like on rpm build script. Signed-off-by: Takuya ASADA <syuu@scylladb.com> Message-Id: <20180425205439.30053-1-syuu@scylladb.com>
31 lines
932 B
Makefile
Executable File
31 lines
932 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
export PYBUILD_DISABLE=1
|
|
jobs := $(shell echo $$DEB_BUILD_OPTIONS | sed -r "s/.*parallel=([0-9]+).*/-j\1/")
|
|
|
|
override_dh_auto_configure:
|
|
./configure.py --with=scylla --with=iotune --enable-dpdk --mode=release --static-thrift --static-boost --static-yaml-cpp --compiler=@@COMPILER@@ --cflags="-I/opt/scylladb/include -L/opt/scylladb/lib/x86-linux-gnu/" --ldflags="-Wl,-rpath=/opt/scylladb/lib"
|
|
|
|
override_dh_auto_build:
|
|
PATH="/opt/scylladb/bin:$$PATH" ninja $(jobs)
|
|
|
|
override_dh_auto_clean:
|
|
rm -rf build/release seastar/build
|
|
rm -rf Cql.tokens
|
|
rm -rf build.ninja seastar/build.ninja
|
|
|
|
override_dh_installinit:
|
|
dh_installinit --no-start @@DH_INSTALLINIT@@
|
|
@@INSTALL_HK_DAILY_INIT@@
|
|
@@INSTALL_HK_RESTART_INIT@@
|
|
@@INSTALL_FSTRIM@@
|
|
@@INSTALL_NODE_EXPORTER@@
|
|
|
|
override_dh_installcron:
|
|
dh_installcron
|
|
|
|
override_dh_strip:
|
|
dh_strip --dbg-package=scylla-server-dbg
|
|
%:
|
|
dh $@ --with-python3 --buildsystem=pybuild
|