Skip to content

Commit

Permalink
Merge pull request #43 from ThomasWaldmann/Makefile-cleanup
Browse files Browse the repository at this point in the history
Makefile: remove version related code
  • Loading branch information
ThomasWaldmann committed Nov 3, 2018
2 parents ca888d1 + 634f0ff commit 818deb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
13 changes: 3 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
TIP=$(shell git rev-list HEAD | head -1)
SOURCES=$(shell find flatland -name '*.py')
I18N=flatland/i18n

Expand All @@ -18,14 +17,8 @@ compile-messages:
pybabel compile -d $(I18N) -D flatland

tip-sdist: compile-messages
@echo "Preparing sdist of flatland @ git.$(TIP)"
perl -pi -e \
"s~version = flatland.__version__~version = 'git.$(TIP)'~" \
setup.py
@echo "Preparing sdist of flatland..."
(cd docs/source && make clean)
(cd docs/source && VERSION=$(TIP) make html)
(cd docs/source && VERSION=$(TIP) make text)
(cd docs/source && make html)
(cd docs/source && make text)
python setup.py sdist
perl -pi -e \
"s~version = 'git.$(TIP)'~version = flatland.__version__~" \
setup.py
2 changes: 0 additions & 2 deletions docs/source/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
VERSION ?= tip

# Internal variables.
ALLSPHINXOPTS = -d ../doctrees $(SPHINXOPTS) .
Expand Down Expand Up @@ -39,7 +38,6 @@ website:
mkdir -p ../website ../doctrees
$(SPHINXBUILD) -b discorporate \
-D html_theme=discorporate \
-D version=$(VERSION) \
$(ALLSPHINXOPTS) ../website

doctest:
Expand Down

0 comments on commit 818deb9

Please sign in to comment.