-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (46 loc) · 1.29 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Makefile for package upload and documentation
#
# You can set these variables from the command line.
PACKAGE = md2docx
DOCSDIR = docs
BUILDDIR = $(DOCSDIR)/build
SOURCEDIR = $(DOCSDIR)/source
# Internal variables.
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(SOURCEDIR)
.PHONY: help
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " sdist prepare distribution of package"
@echo " upload sdist and upload to pypi"
@echo " clean to clean the whole directory"
@echo " apidoc generate api from functions"
@echo " html to make standalone HTML files"
@echo " upload_doc upload documentation"
@echo " test run tests"
.PHONY: sdist
sdist:
python setup.py sdist
.PHONY: upload
upload:
python setup.py sdist upload
.PHONY: clean
clean:
rm -rf $(BUILDDIR)/*
rm $(SOURCEDIR)/auto_examples -fr
rm $(SOURCEDIR)/modules -fr
rm $(DOCSDIR)/examples -fr
rm $(DOCSDIR)/modules -fr
.PHONY: apidoc
apidoc:
sphinx-apidoc -f -M -e -o $(SOURCEDIR)/api $(PACKAGE)
.PHONY: html
html:
sphinx-build -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
.PHONY: upload_doc
upload_doc:
scp -r $(BUILDDIR)/* gpiantoni:public_html/$(PACKAGE)
.PHONY: test
test:
@echo "Run tests"