diff --git a/Makefile b/Makefile index d6a7d44..82d6b4e 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ BUILD:=_build core: dune build src/core/cbindings.exe.o ar -rs $(BUILD)/liboboycore.a _build/default/src/core/cbindings.exe.o + scripts/invalidate_cpp.sh # check: # ocamlbuild -use-ocamlfind -I src -lflag -g test/test_bit.byte -- diff --git a/scripts/invalidate_cpp.sh b/scripts/invalidate_cpp.sh new file mode 100755 index 0000000..592aca1 --- /dev/null +++ b/scripts/invalidate_cpp.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -euo pipefail + +for dir in _build/qt/*; do + pushd $dir + cmake --build . --target clean + popd +done