SHELL:=/bin/bash v8pp: env git clone https://github.com/rayburgemeestre/v8pp bash ../ubuntu1804.sh make build bash ../ubuntu1804.sh make archive # outside container not enough permissions make package build: 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 apt-get update apt-get install pkg-config -y cd v8pp && ./build-v8.sh archive: rm -rf v8.a ar rvs v8.a $$(cat v8-include.txt |xargs -n 1 -I{} find {} -name '*.o') echo all included object files listed below cat v8-include.txt |xargs -n 1 -I{} find {} -name '*.o' echo all .so files listed below find ./ -name '*.so' package: rm -rf out rm -rf v8pp_1.0_amd64.deb mkdir -p out/opt/cppse/build/v8pp/lib mkdir -p out/opt/cppse/build/v8pp/include cp -prv v8.a out/opt/cppse/build/v8pp/lib cp -prv v8pp/v8pp out/opt/cppse/build/v8pp/include/ cp -prv v8pp/v8/include out/opt/cppse/build/v8pp/include/v8 docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:18.04 fpm -s dir -t deb -n v8pp --license MPL2 --maintainer "Ray Burgemeestre " --description "v8pp - build dependency" --url "https://github.com/rayburgemeestre/v8pp" --deb-generate-changes -C /src/out clean: rm -rf v8pp rm -rf out shell: FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash