Pārlūkot izejas kodu

Add benchmarklib project

master
Ray Burgemeestre pirms 5 gadiem
vecāks
revīzija
fb75068c7c
1 mainītis faili ar 29 papildinājumiem un 0 dzēšanām
  1. +29
    -0
      benchmarklib/Makefile

+ 29
- 0
benchmarklib/Makefile Parādīt failu

SHELL:=/bin/bash

caf:
git clone https://bitbucket.org/rayburgemeestre/benchmarklib
pushd benchmarklib && git checkout master
bash ../ubuntu1804.sh make impl
make package

impl:
# TODO install boost from apt repo
# if [[ -f CMakeCache.txt ]]; then rm CMakeCache.txt; fi
pushd benchmarklib && \
CXX=$$(which c++) cmake -DSTATIC=1 -DBOOST_ROOT=/opt/cppse/build/boost . && \
make -j $$(nproc) && \
make install && \

package:
rm -rf out
mkdir -p out/opt/cppse/build/benchmarklib
cp -prv /path/to.a 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 <ray@cppse.nl>" --description "benchmarklib - build dependency" --url "https://github.com/liballeg/benchmarklib.git" --deb-generate-changes -C /src/out

clean:
rm -rf benchmarklib
rm -rf out

shell:
FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash

Notiek ielāde…
Atcelt
Saglabāt