git-linter/Makefile

28 lines
763 B
Makefile
Raw Permalink Normal View History

.PHONY: clean-pyc clean-build docs clean
help:
@echo "docs - generate Sphinx HTML documentation, including API docs"
2016-10-05 18:18:12 +00:00
@echo "clean - clean up generated documentation"
@echo "realclean - clean out imported master copy"
2016-10-04 00:31:52 +00:00
master:
git clone -b master `git config --get remote.origin.url` master
2016-10-04 00:31:52 +00:00
docs: master
cd master && git pull origin master && make docs
2016-10-04 17:20:46 +00:00
rm -fr _modules _static _sources modules static sources
2016-10-04 00:31:52 +00:00
mv master/docs/_build/html/* .
mv _modules modules
mv _static static
mv _sources sources
perl -pi.bak -e 's/_sources/sources/g; s/_static/static/g; s/_modules/modules/g' *.html modules/*.html modules/*/*.html
rm *.html.bak modules/*.html.bak modules/*/*.html.bak
2016-10-04 00:31:52 +00:00
clean:
rm *.html
rm -fr modules static sources
2016-10-04 00:31:52 +00:00
realclean:
rm -fr master