diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-01-05 20:00:46 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-01-06 14:50:49 +0100 |
commit | 87d610aa371ef985212e1f18966dcf1668abf948 (patch) | |
tree | 52b95d7350bb1a5d44dbbd886ddd0b0cf5a95301 /Makefile.in | |
parent | 31bbb6a6be9eafe3f0dcb185b5250efeeeb3f485 (diff) | |
download | ptxdist-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>
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 35 |
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 |