cvsdist 32b7b0c
# Makefile for source rpm: elfutils
6a3517a
# $Id: Makefile,v 1.4 2005/06/09 22:29:12 roland Exp $
cvsdist 32b7b0c
NAME := elfutils
cvsdist 32b7b0c
SPECFILE = $(firstword $(wildcard *.spec))
cvsdist 32b7b0c
f9d2e4a
TARGETS += elfutils-portability.patch
f9d2e4a
cvsdist 32b7b0c
include ../common/Makefile.common
76905ff
f9d2e4a
master-cvsroot = :gserver:cvs.devel.redhat.com:/cvs/devel
f9d2e4a
f9d2e4a
elfutils-portability.patch: elfutils-$(VERSION).tar.gz
f9d2e4a
	@rm -rf elfutils-master elfutils-portable
f9d2e4a
	cvs -d $(master-cvsroot) -Q export \
6a3517a
	    -d elfutils-master -r HEAD elfutils/elfutils
f9d2e4a
	cvs -d $(master-cvsroot) -Q export \
6a3517a
	    -d elfutils-portable -r portable-branch elfutils/elfutils
6a3517a
	cd elfutils-master; autoreconf; rm -rf autom4te.cache
6a3517a
	cd elfutils-portable; autoreconf; rm -rf autom4te.cache
f9d2e4a
	diff -rpu elfutils-master elfutils-portable | \
2c9c7d1
	filterdiff --remove-timestamps --strip=1 --addprefix=elfutils/ > $@.new
76905ff
	mv $@.new $@