diff options
author | Clark Williams <williams@redhat.com> | 2007-06-11 14:50:21 -0500 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2007-06-11 14:50:21 -0500 |
commit | d18cb4580f5f2b37e7d8a33957246a2b99d7b60f (patch) | |
tree | 2b6d6609c2a978fc182d8f9f6053d16ef5257e6f /Makefile | |
parent | 27892721936509e3cedcf141049ffefb969e60d1 (diff) | |
download | mock-d18cb4580f5f2b37e7d8a33957246a2b99d7b60f.tar.gz mock-d18cb4580f5f2b37e7d8a33957246a2b99d7b60f.tar.xz mock-d18cb4580f5f2b37e7d8a33957246a2b99d7b60f.zip |
initial merge of mock-0-6-branch into HEAD
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 36 |
1 files changed, 10 insertions, 26 deletions
@@ -3,7 +3,6 @@ SUBDIRS = etc src docs PKGNAME = mock VERSION=$(shell awk '/Version:/ { print $$2 }' ${PKGNAME}.spec) RELEASE=$(shell awk '/Release:/ { print $$2 }' ${PKGNAME}.spec) -CVSTAG=mock-$(subst .,_,$(VERSION)-$(RELEASE)) all: subdirs @@ -19,41 +18,26 @@ subdirs: for d in $(SUBDIRS); do make -C $$d; [ $$? = 0 ] || exit 1 ; done install: - install -D mock.py $(DESTDIR)/usr/libexec/mock.py - install -D mock-yum $(DESTDIR)/usr/libexec/mock-yum + mkdir -p $(DESTDIR)/usr/bin/ + mkdir -p $(DESTDIR)/usr/libexec + install -m 755 mock.py $(DESTDIR)/usr/bin/mock + install -m 755 mock-yum $(DESTDIR)/usr/libexec/mock-yum 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*' + --exclude='*.tar.gz' --exclude='*.tar.bz2' --exclude='*test*' \ + --exclude='.git' archive: clean @rm -rf ${PKGNAME}-*.tar.gz - @rm -rf /tmp/${PKGNAME}-$(VERSION) /tmp/${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) - @rm -rf /tmp/${PKGNAME}-$(VERSION) + @git-archive --format=tar --prefix=${PKGNAME}-$(VERSION)/ HEAD |gzip > ${PKGNAME}-$(VERSION).tar.gz @echo "The archive is in ${PKGNAME}-$(VERSION).tar.gz" rpm: archive rm -rf build dist mkdir build dist - rpmbuild --define "_sourcedir $(PWD)" \ - --define "_builddir $(PWD)/build" \ - --define "_srcrpmdir $(PWD)/dist" \ - --define "_rpmdir $(PWD)/dist" -ba mock.spec - -RPMARGS := --define "_sourcedir $(PWD)" \ - --define "_builddir $(PWD)/buildsys" \ - --define "_srcrpmdir $(PWD)/buildsys" \ - --define "_rpmdir $(PWD)/buildsys" - -RPMARGS := --define "_sourcedir $(PWD)" \ - --define "_builddir $(PWD)/buildsys" \ - --define "_srcrpmdir $(PWD)/buildsys" \ - --define "_rpmdir $(PWD)/buildsys" + rpmbuild --define "_sourcedir $(PWD)" --define "_builddir $(PWD)/build" --define "_srcrpmdir $(PWD)/dist" --define "_rpmdir $(PWD)/dist" -ba mock.spec RPMARGS := --define "_sourcedir $(PWD)" \ --define "_builddir $(PWD)/buildsys" \ @@ -66,10 +50,10 @@ buildsys-rpm: for i in 1 2 3 4 5 6; do \ rpmbuild $(RPMARGS) --define "fedora $$i" --define "dist .fc$$i" -bb buildsys-build.spec; \ done - for i in 3 4; do \ + for i in 3 4 5; do \ rpmbuild $(RPMARGS) --define "rhel $$i" --define "dist .el$$i" -bb buildsys-build.spec; \ done for i in 73 8 9; do \ rpmbuild $(RPMARGS) --define "rhl $$i" --define "dist .rh$$i" -bb buildsys-build.spec; \ done - rpmbuild $(RPMARGS) --define "fedora development" --define "dist .fc7" -bb buildsys-build.spec + rpmbuild $(RPMARGS) --define "fedora development" --define "dist .fc7" -bb buildsys-build.spec |