Skip to content

Commit 2595a01

Browse files
committed
BLD: Add useful shortcuts to Makefile
BLD: Add doc task to Makefile BLD: Make doc not silent BLD: add tasks to .PHONY BLD: Only remove *.pyc with make build
1 parent fad50af commit 2595a01

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

Makefile

+20-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
1-
clean:
1+
.PHONY : clean develop build clean clean_pyc tseries doc
2+
3+
clean: clean_pyc
24
-rm -rf build dist
5+
-find . -name '*.so' -exec rm -f {} \;
6+
7+
clean_pyc:
8+
-find . -name '*.pyc' -exec rm -f {} \;
39

410
tseries: pandas/lib.pyx pandas/tslib.pyx pandas/hashtable.pyx
511
python setup.py build_ext --inplace
612

713
sparse: pandas/src/sparse.pyx
8-
-python setup.py build_ext --inplace
14+
python setup.py build_ext --inplace
15+
16+
build: clean_pyc
17+
python setup.py build_ext --inplace
18+
19+
develop: build
20+
-python setup.py develop
921

10-
test: sparse
11-
-python pandas/tests/test_libsparse.py
22+
doc:
23+
-rm -rf doc/build
24+
-rm -rf doc/source/generated
25+
cd doc; \
26+
python make.py clean; \
27+
python make.py html

0 commit comments

Comments
 (0)