From 2595a01ca8957a22f4e6d227b3ccf6e7d957cc5c Mon Sep 17 00:00:00 2001 From: Jeffrey Tratner Date: Fri, 7 Jun 2013 18:12:38 -0400 Subject: [PATCH] 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 --- Makefile | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index af44d0223938a..6b7e02404525b 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,27 @@ -clean: +.PHONY : clean develop build clean clean_pyc tseries doc + +clean: clean_pyc -rm -rf build dist + -find . -name '*.so' -exec rm -f {} \; + +clean_pyc: + -find . -name '*.pyc' -exec rm -f {} \; tseries: pandas/lib.pyx pandas/tslib.pyx pandas/hashtable.pyx python setup.py build_ext --inplace sparse: pandas/src/sparse.pyx - -python setup.py build_ext --inplace + python setup.py build_ext --inplace + +build: clean_pyc + python setup.py build_ext --inplace + +develop: build + -python setup.py develop -test: sparse - -python pandas/tests/test_libsparse.py \ No newline at end of file +doc: + -rm -rf doc/build + -rm -rf doc/source/generated + cd doc; \ + python make.py clean; \ + python make.py html