1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00
wting_autojump/Makefile

48 lines
1.2 KiB
Makefile
Raw Normal View History

VERSION = $(shell grep -oE "[0-9]+\.[0-9]+\.[0-9]+" bin/autojump)
TAGNAME = release-v$(VERSION)
2014-01-01 00:39:45 +00:00
.PHONY: docs install uninstall lint tar test
install:
./install.py
uninstall:
./uninstall.py
docs:
2012-04-18 06:38:49 +00:00
pandoc -s -w man docs/manpage_header.md docs/header.md docs/body.md -o docs/autojump.1
2014-01-07 18:32:35 +00:00
pandoc -s -w markdown docs/header.md docs/install.md docs/body.md -o README.md
2016-04-29 06:25:07 +00:00
pre-commit:
@tox -e pre-commit -- install -f --install-hooks
2013-11-24 22:47:14 +00:00
release: docs
# Check for tag existence
# git describe release-$(VERSION) 2>&1 >/dev/null || exit 1
# Modify autojump with version
./tools/git-version.sh $(TAGNAME)
# Commit the version change
git commit -m "version numbering" ./bin/autojump
# Create tag
git tag -a $(TAGNAME)
# Create tagged archive
git archive --format=tar --prefix autojump_v$(VERSION)/ $(TAGNAME) | gzip > autojump_v$(VERSION).tar.gz
sha1sum autojump_v$(VERSION).tar.gz
2012-05-13 02:31:58 +00:00
2012-10-31 03:30:45 +00:00
tar:
# Create tagged archive
git archive --format=tar --prefix autojump_v$(VERSION)/ $(TAGNAME) | gzip > autojump_v$(VERSION).tar.gz
sha1sum autojump_v$(VERSION).tar.gz
2013-12-31 22:34:35 +00:00
2016-04-29 06:29:55 +00:00
test: pre-commit
2016-04-29 06:25:07 +00:00
@find . -type f -iname '*.py[co]' -delete
tox
2016-04-29 05:38:00 +00:00
2016-04-29 06:25:07 +00:00
test-fast: pre-commit
@find . -type f -iname '*.py[co]' -delete
2016-04-29 05:38:00 +00:00
tox -e py27