Skip to content

Commit

Permalink
add phony to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmota committed Jul 4, 2018
1 parent 613f452 commit 0bf9011
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,28 +1,36 @@
all:
@echo "no default"
all: build

.PHONY: install
install:
npm install gitbook-cli@latest -g

.PHONY: serve
serve:
gitbook serve

.PHONY: build
build:
gitbook build

.PHONY: deploy
deploy:
./deploy.sh

.PHONY: deploy/all
deploy/all: build pdf ebook mobi deploy

.PHONY: pdf
pdf:
gitbook pdf ./ ethereum-development-with-go.pdf

.PHONY: ebook
ebook:
gitbook epub ./ ethereum-development-with-go.epub

.PHONY: mobi
mobi:
gitbook mobi ./ ethereum-development-with-go.mobi

.PHONY: plugins/install
plugins/install:
gitbook install

0 comments on commit 0bf9011

Please sign in to comment.