Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions opam/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ all: infer.opam.locked infer-tests.opam.locked ocamlformat.opam.locked llvm.opam
.PHONY: infer.opam.locked
infer.opam.locked:
$(OPAM) lock --switch $(OPAMSWITCH) ./infer.opam
sed -i '/^ *"host-/d' $@
perl -i -pe '/^ *"host-/d' $@

# depends on opam internal state
.PHONY: infer-tests.opam.locked
infer-tests.opam.locked:
sed -e 's/{with-test}//' -e 's/ & with-test}/}/' infer.opam > infer-tests.opam
$(OPAM) lock --switch $(OPAMSWITCH) ./infer-tests.opam
sed -i '/^ *"host-/d' $@
perl -i -pe '/^ *"host-/d' $@

# depends on opam internal state
.PHONY: ocamlformat.opam.locked
ocamlformat.opam.locked:
$(OPAM) lock --switch $(OPAMSWITCH) ocamlformat
sed -i '/^ *"host-/d' $@
perl -i -pe '/^ *"host-/d' $@

# depends on the local opam repo
.PHONY: llvm.opam.locked
Expand All @@ -36,4 +36,4 @@ llvm.opam.locked:
# make paths to local patches relative
# sed is not perfect here, let's hope the path doesn't contain regexp-significant characters
# opam sometimes adds file://, sometimes not
sed -i -e "s#\(file://\)\?$$(realpath $(ROOT_DIR))/##g" $@
perl -i -pe "s#\(file://\)\?$$(realpath $(ROOT_DIR))/##g" $@
Loading