-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to the README, Makefile, and requirements/development.txt.
- Loading branch information
1 parent
ad84874
commit f8313c3
Showing
3 changed files
with
24 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,25 @@ | ||
# | ||
# Makefile | ||
# Development by Carl J. Nobile | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
FQDN = $(shell hostname --fqdn) | ||
DOC_DIR = $(shell pwd) | ||
API_DIR = api | ||
URL = http://${FQDN}${DOC_DIR}/${API_DIR}/index.html | ||
TARBALL_NAME = SunriseSunset | ||
# You can set these variables from the command line. | ||
SPHINXOPTS = | ||
SPHINXBUILD = sphinx-build | ||
SPHINXPROJ = SunriseSunsetAPI | ||
SOURCEDIR = source | ||
BUILDDIR = build | ||
|
||
all : api-docs | ||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
#---------------------------------------------------------------------- | ||
api-docs: | ||
@(cd ..; epydoc -v --docformat epytext \ | ||
--name "Sunrise Sunset Calculator" -o docs/api --show-private \ | ||
--show-imports --graph all --url "${URL}" *.py \ | ||
) | ||
#---------------------------------------------------------------------- | ||
tar : | ||
@(ln -s ${API_DIR} ${TARBALL_NAME}; \ | ||
tar -chzvf ${TARBALL_NAME}.tar.gz ${TARBALL_NAME}) | ||
#---------------------------------------------------------------------- | ||
.PHONY : clean clobber | ||
.PHONY : sphinx-apidoc | ||
sphinx-apidoc: | ||
sphinx-apidoc -o source/ -H sunrisesunset -A 'Carl J. Nobile' -V 1.0 \ | ||
-R 1.0.0 ../sunrisesunset | ||
|
||
clean : | ||
@rm -f *~ \#* .\#* | ||
.PHONY: help Makefile | ||
|
||
clobber : clean | ||
@rm -rf ${API_DIR} ${TARBALL_NAME} ${TARBALL_NAME}.tar.gz | ||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,5 @@ timezonefinder | |
wheel | ||
twine | ||
#mock | ||
#nose | ||
#pynose | ||
ipython |