1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00
wting_autojump/Makefile
Johnny Kuan ceab9f505a use make for autojump and release tarball
autojump.py is now a source file, autojump is the 
executable with version information.
Makefile automatically looks for last tagged 
commit when making the release tar.gz
2011-09-21 09:59:01 -07:00

14 lines
375 B
Makefile

.PHONY: release
autojump: autojump.py
./git-version.sh
version=`git describe $$(git rev-list --tags --max-count=1)`
number=`git describe $$(git rev-list --tags --max-count=1) | sed "s/^[a-z]*-//"`
release:
echo $(TAG)
@echo NOTE: make sure you\'re on a tagged commit
git archive --format=tar --prefix autojump_$(number)/ $(version) | gzip > autojump_$(number).tar.gz