advanced-go-programming-book/Makefile

36 lines
727 B
Makefile

# 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