Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make playground/gen_stdlib.sh mac compatible #1469

Merged
merged 2 commits into from Aug 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 7 additions & 5 deletions playground/Makefile
@@ -1,17 +1,19 @@
COMPILER=5.0.0
SWITCH=playground

.PHONY: create_switch
create_switch: ## Create switch and pinned opam repo
opam switch create $(SWITCH) $(COMPILER) --no-install
create_switch: ## Create switch
opam switch create . $(COMPILER) --no-install

.PHONY: deps
deps: create_switch ## Install development dependencies
opam install . --deps-only --switch=$(SWITCH)
opam install . --deps-only -y

.PHONY: switch
switch: deps ## Create an opam switch and install development dependencies

.PHONY: build
build:
opam exec --switch=$(SWITCH) -- dune build --root .
opam exec -- dune build --root .

.PHONY: fmt
fmt: ## Format the codebase with ocamlformat
Expand Down