forked from populse/capsul
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·50 lines (39 loc) · 1.15 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
# Makefile for capsul
#
PYTHON ?= python
NOSETESTS ?= nosetests
CTAGS ?= ctags
DOCSRC_DIR = doc
CAPS = $(shell python -c "import caps; print caps.__path__[0]" 2>&1)
UPLAOD = $(CAPS)/sphinx_resources/upload/
# Remove temporary files.
clean-pyc:
find . -name "*.pyc" | xargs rm -f
clean-tmp:
find . -name "*.py~" | xargs rm -f
clean-so:
find . -name "*.so" | xargs rm -f
find . -name "*.pyd" | xargs rm -f
# Remove the build documentation folder.
clean-doc-build:
rm -rf doc/build
# Clean the project.
clean: clean-doc-build clean-pyc clean-so clean-tmp
# Upload source tarball on pypi server.
upload-pypi:
python setup.py sdist register upload -r pypi
# Register project on pypi server.
register-pypi:
python setup.py register -r pypi
# Build dependencies inplace.
build-inplace:
python setup.py build_ext --inplace
# Build and upload doc on pypi server.
# Requires "pip install sphinx-pypi-upload".
upload-pypidoc:
cd doc; make html
$(PYTHON) setup.py upload_sphinx --upload-dir=doc/_build/html -r pypi
# Build and upload doc on cea server.
upload-ceadoc:
cd doc; make html
python $(UPLAOD)/webdav_upload.py -i capsul