Skip to content

Commit

Permalink
Added Makefile to help build and packaging process
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtin committed May 16, 2016
1 parent 680962c commit 24bcf9d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

PYTHON = python
PANDOC = pandoc

EMAIL = "mahtin@mahtin.com"

all: README.rst build

README.rst: README.md
$(PANDOC) --from=markdown --to=rst < README.md > README.rst

build: setup.py
$(PYTHON) setup.py build

install: build
$(PYTHON) setup.py install

test: all
# to be done

sdist: all
make clean
make test
$(PYTHON) setup.py sdist

upload: clean all
$(PYTHON) setup.py sdist upload --sign --identity="$(EMAIL)"

clean:
rm -rf build dist
$(PYTHON) setup.py clean

0 comments on commit 24bcf9d

Please sign in to comment.