summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: ca812ac499fde5fa7d69fda69c1f57f24e3af187 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
PYTHONPATH?=$(HOME)/workspace/python_sandbox
DEVELOPDIR?=$(shell echo $(PYTHONPATH) | cut -d : -f 1)

.PHONY: readme sdist develop upload_docs clean all

all: sdist

sdist:
	python setup.py sdist

develop:
	python setup.py develop --install-dir=$(DEVELOPDIR)

readme: README.txt

%.txt: %.md
	pandoc --from=markdown --to=rst -o $@ $?

upload_docs:
	make -C doc html
	python setup.py upload_docs

clean:
	-rm README.txt
	make -C doc clean