-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathMakefile
27 lines (19 loc) · 800 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
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
#=================================================
# Bindings
#=================================================
bindings-index:
cd generator; ./gradlew run --args="--directory=.. index"
bindings-update:
cd generator; ./gradlew run --args="--directory=.. update --force --skip-upgrade"
#=================================================
# Book
#=================================================
cargo-mdbook:
cargo install mdbook --version 0.4.21 --no-default-features
cargo-preprocessor:
cargo install --path ./tutorial/book/preprocessor
book: bindings-index cargo-mdbook cargo-preprocessor
cd ./tutorial/book; mdbook build
book-server: book
/usr/bin/env python3 -m http.server 3000 --directory ./tutorial/book/book