projects
/
tools
/
mic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
93a29f5
)
Makefile: make dist to remember the git commit id
author
JF Ding
<Jian-feng.Ding@intel.com>
Fri, 16 Sep 2011 02:38:10 +0000
(11:38 +0900)
committer
JF Ding
<Jian-feng.Ding@intel.com>
Fri, 16 Sep 2011 02:38:10 +0000
(11:38 +0900)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
719293c
..
e3e5292
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-17,13
+17,17
@@
endif
all:
$(PYTHON) setup.py build
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)
install: all
$(PYTHON) setup.py install --prefix=$(DESTDIR)/$(PREFIX)