From fda60ba5383c7ff6d6ca472f2c5374c829511676 Mon Sep 17 00:00:00 2001 From: Fabien Freling Date: Fri, 12 Jul 2019 14:06:55 +0200 Subject: [PATCH] Invalidate C++ app --- Makefile | 1 + scripts/invalidate_cpp.sh | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100755 scripts/invalidate_cpp.sh 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