Skip to content

Commit

Permalink
Makefile: Rename tasks' name
Browse files Browse the repository at this point in the history
Has the following tasks:

* build: Compile e-book in /data volume
* docker: Build docker image

Signed-off-by: Jiang Xin <[email protected]>
  • Loading branch information
jiangxin committed Jan 18, 2016
1 parent ec8ac95 commit c6b44f8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
all:
@echo "build: build gotgit/gotgit"
@echo "build: Download gotgit e-book (if not exist) and compile it"

build:
@docker build -t gotgit/gotgit .
@docker run --rm -it -v $$(pwd)/gotgit:/data gotgit/gotgit

push
@docker login
@docker push gotgit/gotgit
docker:
@docker build -t gotgit/gotgit .

.PHONY: all build run
.PHONY: all build

0 comments on commit c6b44f8

Please sign in to comment.