-
Notifications
You must be signed in to change notification settings - Fork 3.2k
/
Copy pathMakefile
35 lines (29 loc) · 727 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
# Copyright 2016 <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
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:chai2010/advanced-go-programming-book.git
cd book && git push -f origin gh-pages
clean:
-rm -rf book