summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2010-01-05 20:00:46 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2010-01-06 14:50:49 +0100
commit87d610aa371ef985212e1f18966dcf1668abf948 (patch)
tree52b95d7350bb1a5d44dbbd886ddd0b0cf5a95301
parent31bbb6a6be9eafe3f0dcb185b5250efeeeb3f485 (diff)
downloadptxdist-87d610aa371ef985212e1f18966dcf1668abf948.tar.gz
ptxdist-87d610aa371ef985212e1f18966dcf1668abf948.tar.xz
[Makefile] let "make dist" use git
This patch convert the "dist" make target to use git. It probably won't work if you're not using git. This may be fixed later or upon request. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r--Makefile.in35
1 files changed, 20 insertions, 15 deletions
diff --git a/Makefile.in b/Makefile.in
index 494224bc1..971201368 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -60,21 +60,26 @@ clean:
@$(MAKE) -C "$(abs_srcdir)/scripts/kconfig" clean
dist:
- PTXDIST_TOPDIR=$(shell pwd); \
- tmpdir=`mktemp -d /tmp/ptxdist.XXXXXX`; \
- cp -a $$PTXDIST_TOPDIR $$tmpdir/ptxdist-$(version); \
- cd $$tmpdir/ptxdist-$(version); $(MAKE) distclean; \
- find $$tmpdir/ptxdist-$(version) -name ".svn" | xargs rm -fr; \
- rm -f $$tmpdir/ptxdist-$(version)/.done; \
- cd $$tmpdir; \
- tar -zcf ptxdist-$(version)-patches.tgz ptxdist-$(version)/patches; \
- rm -fr ptxdist-$(version)/patches; \
- tar -zcf ptxdist-$(version).tgz ptxdist-$(version); \
- cd $$PTXDIST_TOPDIR; \
- mv $$tmpdir/ptxdist-$(version).tgz .; \
- mv $$tmpdir/ptxdist-$(version)-patches.tgz .; \
- rm -fr $$tmpdir; \
- ls -l ptxdist-*
+ @rm -rf "$(project)"
+ git archive "$(project)" --prefix="$(project)"/ | tar x
+ cd "$(project)" && ./autogen.sh
+ tar -cz \
+ --exclude ".svn" \
+ --exclude ".git" \
+ --exclude ".pc" \
+ --exclude "$(project)/autom4te.cache" \
+ --exclude "$(project)/patches" \
+ -f "$(project).tgz" \
+ "$(project)"
+ md5sum "$(project).tgz" > "$(project).tgz.md5"
+ tar -cz \
+ --exclude ".svn" \
+ --exclude ".git" \
+ --exclude ".pc" \
+ --exclude "$(project)/autom4te.cache" \
+ -f "$(project)-patches.tgz" \
+ "$(project)/patches"
+ md5sum "$(project)-patches.tgz" > "$(project)-patches.tgz.md5"
distclean: clean
rm -fr Makefile