forked from hazelgrove/hazel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
68 lines (46 loc) · 1.13 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
HTML_DIR=_build/default/src/hazelweb/www
HTML_FILE=$(HTML_DIR)/index.html
all: dev
deps:
opam switch import opam.export
change-deps:
opam switch export opam.export
dev:
dune build @src/fmt --auto-promote || true
dune build src --profile dev
watch:
dune build @src/fmt --auto-promote src --profile dev --watch
release:
dune build src --profile release
echo-html-dir:
@echo "$(HTML_DIR)"
echo-html:
@echo "$(HTML_FILE)"
win-chrome:
"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe" "$(HTML_DIR)/index.html"
win-firefox:
"/mnt/c/Program Files/Mozilla Firefox/firefox.exe" "$(HTML_DIR)/index.html"
firefox:
firefox "$(HTML_FILE)" &
chrome:
chrome "$(HTML_FILE)" &
chrome-browser:
chrome-browser "$(HTML_FILE)" &
chromium:
chromium "$(HTML_FILE)" &
chromium-browser:
chromium-browser "$(HTML_FILE)" &
xdg-open:
xdg-open "$(HTML_FILE)"
open:
open "$(HTML_FILE)"
repl:
dune utop src/hazelcore
test:
dune build @src/fmt --auto-promote || true
dune runtest || true
fix-test-answers:
dune promote || true
clean:
dune clean
.PHONY: all deps dev release echo-html-dir echo-html win-chrome win-firefox repl clean