Skip to content

Commit

Permalink
add Makefile and .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
hansent committed Sep 25, 2012
1 parent a816445 commit a27bbfb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*.pyc
*.pyo
src/*.cpp
build/*
p2t.so
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
PYTHON = python

.PHONY: build force clean distclean

build:
$(PYTHON) setup.py build_ext --inplace

force:
$(PYTHON) setup.py build_ext --inplace -f

install:
python setup.py install

clean:
-rm -rf build
-find p2t.so
-find . -iname '*.pyc' -exec rm {} \;
-find . -iname '*.pyo' -exec rm {} \;

distclean: clean
-git clean -dxf


0 comments on commit a27bbfb

Please sign in to comment.