Skip to content

Commit

Permalink
brr-lwd: compute path in examples Makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
let-def committed Oct 29, 2023
1 parent 507278f commit e601b63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/cssclasstest-brr/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
ROOT=$(realpath $(PWD)/../..)
NAME=$(subst $(ROOT)/,,$(realpath $(PWD)))

all:
dune build index.html main.js
@echo "open $(ROOT)/_build/default/examples/focustest-brr/index.html"
@echo "open $(ROOT)/_build/default/$(NAME)/index.html"

clean:
dune clean
3 changes: 2 additions & 1 deletion examples/focustest-brr/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
ROOT=$(realpath $(PWD)/../..)
NAME=$(subst $(ROOT)/,,$(realpath $(PWD)))

all:
dune build index.html main.js
@echo "open $(ROOT)/_build/default/examples/focustest-brr/index.html"
@echo "open $(ROOT)/_build/default/$(NAME)/index.html"

clean:
dune clean

0 comments on commit e601b63

Please sign in to comment.