diff options
author | JF Ding <Jian-feng.Ding@intel.com> | 2011-09-16 11:38:10 +0900 |
---|---|---|
committer | JF Ding <Jian-feng.Ding@intel.com> | 2011-09-16 11:38:10 +0900 |
commit | 7e572d42bfbf3cb5c6bde01ed6ee15dec3cee75a (patch) | |
tree | d60a99004878782ed09df888c340b6d6e308de84 /Makefile | |
parent | 93a29f5e744688af1752ac81ee96b0a3613187c8 (diff) | |
download | mic-7e572d42bfbf3cb5c6bde01ed6ee15dec3cee75a.tar.gz mic-7e572d42bfbf3cb5c6bde01ed6ee15dec3cee75a.tar.bz2 mic-7e572d42bfbf3cb5c6bde01ed6ee15dec3cee75a.zip |
Makefile: make dist to remember the git commit id
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -17,13 +17,17 @@ endif all: $(PYTHON) setup.py build -dist-bz2: - git archive --format=tar --prefix=$(PKGNAME)-$(TAGVER)/ $(TAG) | \ - bzip2 > $(PKGNAME)-$(TAGVER).tar.bz2 +dist-common: + git archive --format=tar --prefix=$(PKGNAME)-$(TAGVER)/ $(TAG) | tar xpf - + git show $(TAG) --oneline | head -1 > $(PKGNAME)-$(TAGVER)/commit-id -dist-gz: - git archive --format=tar --prefix=$(PKGNAME)-$(TAGVER)/ $(TAG) | \ - gzip > $(PKGNAME)-$(TAGVER).tar.gz +dist-bz2: dist-common + tar jcpf $(PKGNAME)-$(TAGVER).tar.bz2 $(PKGNAME)-$(TAGVER) + rm -rf $(PKGNAME)-$(TAGVER) + +dist-gz: dist-common + tar zcpf $(PKGNAME)-$(TAGVER).tar.gz $(PKGNAME)-$(TAGVER) + rm -rf $(PKGNAME)-$(TAGVER) install: all $(PYTHON) setup.py install --prefix=$(DESTDIR)/$(PREFIX) |