SHELL:=/bin/bash UBUNTU_VERSION ?= 2404 CODENAME ?= noble VERSION:=0.1.7 build: $(CODENAME)/cppse-fastpfor_$(VERSION)_amd64.deb $(CODENAME)/cppse-fastpfor_$(VERSION)_amd64.deb: mkdir -p $(CODENAME) make ubuntu$(UBUNTU_VERSION) ubuntu$(UBUNTU_VERSION): git clone https://github.com/rayburgemeestre/FastPFor || true pushd FastPFor && git checkout change-google-test-branch # master at the time of writing bash ../ubuntu$(UBUNTU_VERSION).sh make impl make package-ubuntu$(UBUNTU_VERSION) bash ../ubuntu$(UBUNTU_VERSION).sh chown $$(id -u):$$(id -g) . -R # fix permissions impl: patch FastPFor/CMakeLists.txt libcpp.patch switch-to-latest-clang pushd FastPFor && \ CXX=$$(which c++) cmake . && \ make -j $$(nproc) package-ubuntu$(UBUNTU_VERSION): 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 $(CODENAME)/cppse-fastpfor_*_amd64.deb docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:24.04 fpm -f -v $(VERSION) --iteration $(CODENAME) -s dir -t deb -n cppse-fastpfor --license MPL2 --maintainer "Ray Burgemeestre " --description "fastpfor - build dependency" --url "https://github.com/rayburgemeestre/FastPFor" --deb-generate-changes -C /src/out cp -prv cppse-fastpfor_*_amd64.deb $(CODENAME)/ clean: rm -rf FastPFor rm -rf out shell: FLAGS="-i --privileged" bash ../ubuntu2404.sh /bin/bash