Skip to content

Commit

Permalink
better Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtori committed Oct 18, 2024
1 parent dc4281b commit f940ad4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.PHONY: all build dev install clean doc deps opt-deps remove-opt-deps

all: build

Expand All @@ -17,7 +18,13 @@ doc:
@dune build @doc
@rsync -ru _build/default/_doc/_html/* docs/

build-tests:
@opam install ocurl websocket-lwt-unix js_of_ocaml
@dune build test

deps:
@opam install --deps-only .

opt-deps: deps
@opam pin -n add websocket-httpaf.~dev https://github.com/anmonteiro/websocket-httpaf.git
@opam pin -n add websocket-httpaf-lwt.~dev https://github.com/anmonteiro/websocket-httpaf.git
@opam install $(shell opam show -f depopts . | sed -e 's/{.*}//g' -e 's/"//g')

remove-opt-deps:
@opam remove $(opam show -f depopts: . | sed -e 's/{.*}//g' -e 's/"//g')
2 changes: 1 addition & 1 deletion test/ppx/test_ppx_lib.ml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ and base = "http://localhost:8080"
type test_derive = {
foo: string;
bar: int;
} [@@get {path="/test/getter/{id: string}"; name="bla"; debug}]
} [@@get {path="/test/getter/{id: string}"; name="bla"}]

let%post echo_input = {
path="/echo_input"; raw_input=["text/plain"];
Expand Down

0 comments on commit f940ad4

Please sign in to comment.