forked from guildai/_guild-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (34 loc) · 799 Bytes
/
Makefile
File metadata and controls
48 lines (34 loc) · 799 Bytes
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
LOCAL_DEPS = $(wildcard local-deps/*)
compile:
./rebar3 compile
clean: clean-local-deps
rm -rf build; rm -f rebar.lock
rm -f compile_commands.json
clean-local-deps: $(LOCAL_DEPS:=.clean)
local-deps/%.clean:
make -C local-deps/$* clean
upgrade:
./rebar3 upgrade
./rebar3 compile
test: compile
test/internal $(TESTS)
priv/bin/tensorflow-port test
test-operations: compile
test/operations
test-app: test test-operations
shell:
ERL_LIBS=local-deps:build/default/lib erl -s guild
shell-reload:
ERL_LIBS=local-deps:build/default/lib erl -s e2_reloader -s guild
version:
@if [ -z "$(VERSION)" ]; then \
echo "VERSION must be defined"; \
exit 1; \
fi
release: version compile
scripts/mkrel $(VERSION)
.PHONY : docs
docs:
cd docs && make
serve-docs:
cd docs && make serve