File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 1- .PHONY : main install run bundle_run update review clean
1+ .PHONY : main install run bundle_run update review kill clean
22
33OS_NAME := $(shell uname)
44BRANCH := $(shell cat .git/HEAD | awk -F/ '{ print $$3 }')
55
6- main : run
6+ main : review
77
88install :
99 gem install --no-ri --no-doc bundler github-pages
1010
1111run :
12- jekyll serve
12+ jekyll serve &
1313
1414bundle_run :
15- bundle exec jekyll serve
15+ bundle exec jekyll serve &
1616
1717update :
1818 -git pull origin ${BRANCH}
1919
20- review :
20+ review : kill run
2121ifeq (${OS_NAME}, Darwin)
22+ sleep 3
2223 open http://0.0.0.0:4000
2324else
25+ sleep 3
2426 firefox http://0.0.0.0:4000
2527endif
2628
29+ kill :
30+ -kill -9 ` ps -ef | grep ' jekyll serve' | awk ' { print $$2 }' `
31+
2732push :
2833 -git push origin master
2934 -git push origin develop
You can’t perform that action at this time.
0 commit comments