Added Makefile

This commit is contained in:
Lars Kiesow 2013-05-04 22:26:36 +02:00
parent 0b1af9a6bd
commit 574869c0a3
2 changed files with 36 additions and 1 deletions

34
Makefile Normal file
View file

@ -0,0 +1,34 @@
clean: doc-clean
@echo Removing binary files...
@rm -f `find feedgenerator -name '*.pyc'`
@rm -f `find feedgenerator -name '*.pyo'`
doc: doc-clean doc-html doc-man doc-latexpdf
doc-clean:
@echo Removing docs...
@make -C doc clean
@rm -rf docs
doc-html:
@echo 'Generating HTML'
@make -C doc html
@mkdir -p docs/html
@echo 'Copying html to into docs dir'
@cp doc/_build/html/*.html docs/html/
@cp doc/_build/html/*.js docs/html/
@cp -r doc/_build/html/_static/ docs/html/
doc-man:
@echo 'Generating manpage'
@make -C doc man
@mkdir -p docs/man
@echo 'Copying manpage to into docs dir'
@cp doc/_build/man/*.1 docs/man/
doc-latexpdf:
@echo 'Generating pdf'
@make -C doc latexpdf
@mkdir -p docs/pdf
@echo 'Copying pdf to into docs dir'
@cp doc/_build/latex/*.pdf docs/pdf/

View file

@ -40,7 +40,8 @@ help:
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
clean:
-rm -rf $(BUILDDIR)/*
@echo 'Cleaning build directory'
@rm -rf $(BUILDDIR)/*
html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html