1
0
mirror of https://github.com/wting/autojump synced 2026-03-02 03:49:26 +00:00
Files
wting_autojump/Makefile

69 lines
1.6 KiB
Makefile
Raw Normal View History

VERSION = $(shell grep -oE "[0-9]+\.[0-9]+\.[0-9]+" bin/autojump)
TAGNAME = release-v$(VERSION)
2018-09-06 21:28:05 -07:00
.PHONY: install
install:
./install.py
2018-09-06 21:28:05 -07:00
.PHONY: uninstall
uninstall:
./uninstall.py
2018-09-06 21:28:05 -07:00
.PHONY: docs
docs:
@echo "% autojump(1) ${TAGNAME}" >docs/manpage_header.md
@echo "%" >>docs/manpage_header.md
@echo "% $(shell \date +%Y-%m-%d)" >>docs/manpage_header.md
2012-04-17 20:38:49 -10:00
pandoc -s -w man docs/manpage_header.md docs/header.md docs/body.md -o docs/autojump.1
2014-01-07 12:32:35 -06:00
pandoc -s -w markdown docs/header.md docs/install.md docs/body.md -o README.md
2017-05-31 22:50:32 -07:00
.PHONY: lint
lint: pre-commit
@tox -e pre-commit -- run --all-files
2018-09-06 21:28:05 -07:00
.PHONY: pre-commit
2016-04-28 23:25:07 -07:00
pre-commit:
@tox -e pre-commit -- install -f --install-hooks
2018-09-06 21:28:05 -07:00
.PHONY: release
2013-11-24 23:47:14 +01: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-12 16:31:58 -10:00
2018-09-06 21:28:05 -07:00
.PHONY: tar
2012-10-30 22:30:45 -05: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 16:34:35 -06:00
2018-09-06 21:28:05 -07:00
.PHONY: test
2016-04-28 23:29:55 -07:00
test: pre-commit
@tox
2016-04-28 22:38:00 -07:00
2018-09-06 21:28:05 -07:00
.PHONY: test-xfail
2016-06-22 18:08:51 -07:00
test-xfail: pre-commit
@tox -- --runxfail
2018-09-06 21:28:05 -07:00
.PHONY: test-fast
2016-04-28 23:25:07 -07:00
test-fast: pre-commit
@tox -e py27
2016-05-03 23:10:57 -07:00
2018-09-06 21:28:05 -07:00
.PHONY: clean
2016-05-03 23:10:57 -07:00
clean:
@find . -type f -iname '*.py[co]' -delete
@find . -type d -iname '__pycache__' -delete
@rm -fr .tox