SHELL:=/bin/bash benchmarklib: git clone https://bitbucket.org/rayburgemeestre/benchmarklib pushd benchmarklib && git checkout master bash ../ubuntu1804.sh make impl make package impl: update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-7 40 update-alternatives --install /usr/bin/cc cc /usr/bin/clang-7 40 update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-7 40 update-alternatives --install /usr/bin/clang clang /usr/bin/clang-7 40 update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-7 40 # TODO install boost from apt repo # if [[ -f CMakeCache.txt ]]; then rm CMakeCache.txt; fi dpkg -i boost/pkg/*.deb pushd benchmarklib && \ CXX=$$(which c++) cmake -DSTATIC=1 -DBOOST_ROOT=/opt/cppse/build/boost -DCMAKE_INSTALL_PREFIX=$$PWD/benchmarklib_out . && \ make -j $$(nproc) && \ make install package: rm -rf out mkdir -p out/opt/cppse/build/benchmarklib cp -prv ./benchmarklib/benchmarklib_out/* out/opt/cppse/build/benchmarklib/ rm -rf benchmarklib_1.0_amd64.deb docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:18.04 fpm -s dir -t deb -n benchmarklib --license MPL2 --maintainer "Ray Burgemeestre " --description "benchmarklib - build dependency" --url "https://bitbucket.org/rayburgemeestre/benchmarklib" --deb-generate-changes -C /src/out clean: rm -rf benchmarklib rm -rf out shell: FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash