-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (24 loc) · 789 Bytes
/
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
# Invoke `make` to build, `make clean` to clean up, etc.
.PHONY: default all utop test deps clean
default: all
# Build one library and one standalone executable that implements
# multiple subcommands and uses the library.
# The library can be loaded in utop for interactive testing.
all:
jbuilder build @install
@test -L bin || ln -s _build/install/default/bin .
# Launch utop such that it finds our library.
utop: all
OCAMLPATH=_build/install/default/lib:$(OCAMLPATH) utop
# Build and run tests
test: all
./bin/price-tracker-exe test
# Install dependencies
deps:
jbuilder external-lib-deps --missing @install
# Clean up
clean:
# Remove files produced by jbuilder.
jbuilder clean
# Remove remaining files/folders ignored by git as defined in .gitignore (-X).
git clean -dfXq