blinker / Makefile

TIP=$(shell hg tip --template '{rev}')
REL=$(shell python -c 'import blinker; print blinker.__version__')
.PHONY: clean sdist tip-sdist clean website docs test


release: clean test docs sdist website
	@echo Preparing blinker release $(REL)
	(cd docs/source && make clean)
	(cd docs/source && make doctest)
	(cd docs/source && VERSION=$(REL) make html)
	(cd docs/source && VERSION=$(REL) make text)
	python setup.py sdist --formats=zip

sdist:
	python setup.py sdist

tip-sdist:
	@echo "Preparing sdist of blinker @ hg.$(TIP)"
	perl -pi -e \
          "s~version = blinker.__version__~version = 'hg.$(TIP)'~" \
          setup.py
	$(MAKE) clean
	$(MAKE) REL=$(TIP) docs
	$(MAKE) sdist
	perl -pi -e \
          "s~version = 'hg.$(TIP)'~version = blinker.__version__~" \
          setup.py
	$(MAKE) clean

clean:
	(cd docs/source && make clean)

website:
	(cd docs/source && VERSION=$(REL) make website)

docs:
	(cd docs/source && VERSION=$(REL) make html)
	(cd docs/source && VERSION=$(REL) make text)


test:
	(cd docs/source && make doctest)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.