Skip to content

Commit

Permalink
add publish target in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
RNAer committed Mar 4, 2017
1 parent 5da54fb commit 9f4c692
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,24 @@ else
TEST_COMMAND = nosetests --with-doctest
endif

MSG ?= update documentation

help:
@echo 'Use "make test" to run all the unit tests and docstring tests.'
@echo 'Use "make pep8" to validate PEP8 compliance.'
@echo 'Use "make html" to create html documentation with sphinx'
@echo 'Use "make all" to run all the targets listed above.'
@echo 'Use "MSG=whatever_update_msg make publish" to create html documentation and upload to github pages.'
test:
$(TEST_COMMAND)
pep8:
flake8 *.py
html:
make -C doc clean html
publish:
make -C doc clean
git clone -b gh-pages --single-branch git@github.com:RNAer/dumpling.git doc/_build/html
make -C doc html
cd doc/_build/html && git add * && git commit -m "$(MSG)" && git push origin gh-pages

all: test pep8 html

0 comments on commit 9f4c692

Please sign in to comment.