-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (25 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.DEFAULT_GOAL := help
.PHONY: help
help: ## Print this help message
@echo "List of available make commands";
@echo "";
@grep -hE '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-15s\033[0m %s\n", $$1, $$2}';
@echo "";
.PHONY: setup-ocaml setup-ocaml-local-switch
setup-ocaml: ## Setup OCaml development environment using the current global OPAM switch
opam install . -y --deps-only --with-test || echo "FAILED!! you may want to run opam update"
setup-ocaml-local-switch: ## (Recommended) Setup OCaml development environment with a local OPAM switch
opam switch create . 4.14.1 -y --deps-only
$(MAKE) setup-ocaml
.PHONY: setup-nodepkg
setup-nodepkg: ## Fetch necessary Node.js packages
yarn install
.PHONY: build
build: ## build everything
dune build
.PHONY: build-watch
build-watch: ## build everything (watch file changes)
dune build -w
.PHONY: chakra-simple-serve
chakra-simple-serve: build ## Serve the chakra-simple example
(cd example/chakra-simple && npm run serve)