-
Notifications
You must be signed in to change notification settings - Fork 128
/
Makefile
45 lines (36 loc) · 982 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
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 2022 <chaishushan{AT}gmail.com>. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
#
# waBook: Mini Markdown Book
# https://github.com/wa-lang/wabook
#
default:
wabook serve
build:
-rm book
wabook build
-rm book/.gitignore
-rm book/.nojekyll
-rm -rf book/.git
-rm -rf book/talks
make build-talks
build-talks:
mkdir -p ./book/talks
cp -r ./talks/static-fix-prefix ./book/talks/static
cp -r ./talks/go-compiler-intro ./book/talks/go-compiler-intro
cp ./talks/go-compiler-intro.html ./book/talks/go-compiler-intro.html
deploy:
-@make clean
wabook build
-rm book/.gitignore
-rm -rf book/.git
-rm -rf book/examples
cd book && git init
cd book && git add .
cd book && git commit -m "first commit"
cd book && git branch -M gh-pages
cd book && git remote add origin git@github.com:wa-lang/ugo-compiler-book.git
cd book && git push -f origin gh-pages
clean:
-rm -rf ./book