summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorjcwillia <jcwillia>2007-01-08 22:50:36 +0000
committerjcwillia <jcwillia>2007-01-08 22:50:36 +0000
commit27892721936509e3cedcf141049ffefb969e60d1 (patch)
treef94af68db602665bf92d39169ead5c892849d873 /Makefile
parentddcf8384772dc240aec64ba816f28c23f2e0fefa (diff)
downloadmock-27892721936509e3cedcf141049ffefb969e60d1.tar.gz
mock-27892721936509e3cedcf141049ffefb969e60d1.tar.xz
mock-27892721936509e3cedcf141049ffefb969e60d1.zip
merged latest mock-0-6-branch fixes
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6b0718d..a36b939 100644
--- a/Makefile
+++ b/Makefile
@@ -24,10 +24,13 @@ install:
mkdir -p $(DESTDIR)/var/lib/mock
for d in $(SUBDIRS); do make DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done
+EXCLUDES := --exclude='*~' --exclude='*.patch' --exclude='*.save' \
+ --exclude='*.rpm' --exclude='*.diff' --exclude='*.sh' \
+ --exclude='*.tar.gz' --exclude='*.tar.bz2' --exclude='*test*'
archive: clean
@rm -rf ${PKGNAME}-*.tar.gz
@rm -rf /tmp/${PKGNAME}-$(VERSION) /tmp/${PKGNAME}
- @dir=$$PWD; cd /tmp; cp -a $$dir ${PKGNAME}
+ @rsync -a $(EXCLUDES) . /tmp/${PKGNAME}
@rm -rf /tmp/${PKGNAME}/${PKGNAME}-daily.spec /tmp/${PKGNAME}/build /tmp/${PKGNAME}/dist
@mv /tmp/${PKGNAME} /tmp/${PKGNAME}-$(VERSION)
@dir=$$PWD; cd /tmp; tar cvz --exclude=CVS --exclude=.cvsignore -f $$dir/${PKGNAME}-$(VERSION).tar.gz ${PKGNAME}-$(VERSION)