Permalink
Browse files

add kill option of make

  • Loading branch information...
chusiang committed Dec 9, 2015
1 parent 1adffca commit a1877456a77db08bd17c4cb83f6c94946855cb01
Showing with 10 additions and 5 deletions.
  1. +10 −5 Makefile
View
@@ -1,29 +1,34 @@
.PHONY: main install run bundle_run update review clean
.PHONY: main install run bundle_run update review kill clean
OS_NAME := $(shell uname)
BRANCH := $(shell cat .git/HEAD | awk -F/ '{ print $$3 }')
main: run
main: review
install:
gem install --no-ri --no-doc bundler github-pages
run:
jekyll serve
jekyll serve &
bundle_run:
bundle exec jekyll serve
bundle exec jekyll serve &
update:
-git pull origin ${BRANCH}
review:
review: kill run
ifeq (${OS_NAME}, Darwin)
sleep 3
open http://0.0.0.0:4000
else
sleep 3
firefox http://0.0.0.0:4000
endif
kill:
-kill -9 `ps -ef | grep 'jekyll serve' | awk '{ print $$2 }'`
push:
-git push origin master
-git push origin develop

0 comments on commit a187745

Please sign in to comment.