jrnl/Makefile
2014-06-25 16:40:27 +02:00

32 lines
763 B
Makefile

# A Makefile for commands I run frequently:
clean:
rm -rf dist
rm -rf _static
rm -rf jrnl.egg-info
rm -rf docs/_build
rm -rf _build
rm -rf _sources
rm -rf _static
rm -f *.html
# Build GitHub Page from docs
docs:
git checkout gh-pages ; \
git checkout master docs ; \
git checkout master jrnl ; \
curl https://raw.githubusercontent.com/mateuszkocz/3l/master/3L/3L.less > docs/_themes/jrnl/static/less/3L.less ;\
lessc --clean-css docs/_themes/jrnl/static/less/jrnl.less docs/_themes/jrnl/static/css/jrnl.css ; \
cd docs ; \
make html ; \
cd .. ; \
cp -r docs/_build/html/* . ; \
git add -A ; \
git commit -m "Updated docs from master" ; \
git push -u origin gh-pages ; \
git checkout master
# Upload to pipy
dist:
python setup.py publish