SHELL:=/bin/bash ubuntu2204: git clone --recurse-submodules https://github.com/open-telemetry/opentelemetry-cpp || true mkdir -p out bash ../ubuntu2204.sh make opentelem make package-ubuntu2204 ubuntu2404: git clone --recurse-submodules https://github.com/open-telemetry/opentelemetry-cpp || true mkdir -p out bash ../ubuntu2404.sh make opentelem make package-ubuntu2404 .PHONY : opentelem opentelem: pushd opentelemetry-cpp && \ set -ex && \ git config --global --add safe.directory $$PWD && \ git checkout v1.8.3 && \ mkdir -p build && \ cd build && \ sudo apt update && \ sudo apt install libcurl4-openssl-dev libprotobuf-dev -y && \ cmake -DBUILD_PACKAGE:BOOL=on -DBUILD_TESTING=off -DWITH_OTLP_HTTP=on -DWITH_OTLP_HTTP=on -DWITH_EXAMPLES=off .. && \ cmake --build . --target all && \ echo cpack -G DEB && \ popd # # for some reason this whole package build stuff doesn't work.. # and ditto for the --install target.. ffs. # #cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=$$PWD/../out/ -DBUILD_TESTING=off -DBUILD_PACKAGE=ON .. && \ #cmake --build . --target all && \ #cmake --version && \ #cmake --install . --prefix $$PWD/../../out/ -v && \ #cpack -C debug && \ package-ubuntu2204: rm -rf pkg_out mkdir -p pkg_out/opt/cppse/build/ rsync -raPv out/ pkg_out/opt/cppse/build/ rm -rf redis-plus-plus*amd64.deb docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:22.04 fpm -v 1.1 -s dir -t deb -n redis-plus-plus --license MPL2 --maintainer "Ray Burgemeestre " --description "redis-plus-plus - build dependency" --url "https://github.com/sewenew/redis-plus-plus" --deb-generate-changes -C /src/pkg_out package-ubuntu2404: rm -rf pkg_out mkdir -p pkg_out/opt/cppse/build/ rsync -raPv out/ pkg_out/opt/cppse/build/ rm -rf redis-plus-plus*amd64.deb docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:24.04 fpm -v 1.1 -s dir -t deb -n redis-plus-plus --license MPL2 --maintainer "Ray Burgemeestre " --description "redis-plus-plus - build dependency" --url "https://github.com/sewenew/redis-plus-plus" --deb-generate-changes -C /src/pkg_out clean: sudo rm -rf opentelemetry-cpp sudo rm -rf out sudo rm -rf pkg_out shell: FLAGS="-i --privileged" bash ../ubuntu2204.sh /bin/bash