summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNadrieril2024-05-03 11:32:44 +0200
committerNadrieril2024-05-14 15:01:39 +0200
commitf2fa29e5ef5c8c7d7375e4c8a37dbba1012fb95c (patch)
tree78bab9b0c1abb65ade8751a8cb39cd96bb55bed5 /Makefile
parent44b31973eb5a8c27e5620081669488e3b5899638 (diff)
`./charon-pin` stores the current charon commit
It is kept up-to-date in CI
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 414f562d..cf97e548 100644
--- a/Makefile
+++ b/Makefile
@@ -77,6 +77,17 @@ build-bin-dir: build-bin build-lib
doc:
cd compiler && dune build @doc
+# Fetches the latest commit from charon and updates `flake.lock` accordingly.
+.PHONY: update-charon-pin
+update-charon-pin:
+ nix flake lock --update-input charon
+ $(MAKE) charon-pin
+
+# Keep the commit revision in `./charon-pin` as well so that non-nix users can
+# know which commit to use.
+./charon-pin: flake.lock
+ nix-shell -p jq --run './scripts/update-charon-pin.sh' >> ./charon-pin
+
.PHONY: clean
clean: clean-generated
cd compiler && dune clean