SHELL:=/bin/bash caf: git clone https://github.com/lemire/FastPFor pushd FastPFor && git checkout 8030e3808f857cc12d1d09e264f1ad2a05b1964a # master at the time of writing patch FastPFor/CMakeLists.txt libcpp.patch bash ../ubuntu1804.sh make impl make package impl: update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-9 40 update-alternatives --install /usr/bin/cc cc /usr/bin/clang-9 40 update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-9 40 update-alternatives --install /usr/bin/clang clang /usr/bin/clang-9 40 update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-9 40 pushd FastPFor && \ CXX=$$(which c++) cmake . && \ make -j $$(nproc) package: rm -rf out mkdir -p out/opt/cppse/build/fastpfor/lib mkdir -p out/opt/cppse/build/fastpfor/include cp -prv ./FastPFor/libFastPFor.a out/opt/cppse/build/fastpfor/lib/ cp -prv ./FastPFor/headers out/opt/cppse/build/fastpfor/include/ rm -rf fastpfor_*_amd64.deb docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:18.04 fpm -v 1.1 -s dir -t deb -n fastpfor --license MPL2 --maintainer "Ray Burgemeestre " --description "fastpfor - build dependency" --url "https://github.com/rayburgemeestre/FastPFor" --deb-generate-changes -C /src/out clean: rm -rf FastPFor rm -rf out shell: FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash