Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 24bcf9d

Browse files
committed
Added Makefile to help build and packaging process
1 parent 680962c commit 24bcf9d

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Makefile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
PYTHON = python
3+
PANDOC = pandoc
4+
5+
EMAIL = "mahtin@mahtin.com"
6+
7+
all: README.rst build
8+
9+
README.rst: README.md
10+
$(PANDOC) --from=markdown --to=rst < README.md > README.rst
11+
12+
build: setup.py
13+
$(PYTHON) setup.py build
14+
15+
install: build
16+
$(PYTHON) setup.py install
17+
18+
test: all
19+
# to be done
20+
21+
sdist: all
22+
make clean
23+
make test
24+
$(PYTHON) setup.py sdist
25+
26+
upload: clean all
27+
$(PYTHON) setup.py sdist upload --sign --identity="$(EMAIL)"
28+
29+
clean:
30+
rm -rf build dist
31+
$(PYTHON) setup.py clean
32+

0 commit comments

Comments
 (0)