cvsdist 32b7b0c
# Makefile for source rpm: elfutils
cvsdist 32b7b0c
# $Id$
cvsdist 32b7b0c
NAME := elfutils
cvsdist 32b7b0c
SPECFILE = $(firstword $(wildcard *.spec))
cvsdist 32b7b0c
cvsdist 32b7b0c
include ../common/Makefile.common
5fa3867
5fa3867
elfutils-portability.patch: elfutils-$(VERSION).tar.gz portable.patch
5fa3867
	rm -rf elfutils-$(VERSION) elfutils-$(VERSION).orig
5fa3867
	tar xzf $<
5fa3867
	mv elfutils-$(VERSION) elfutils-$(VERSION).orig
5fa3867
	tar xzf $<
5fa3867
	patch -p1 -d elfutils-$(VERSION) < portable.patch
5fa3867
	cd elfutils-$(VERSION); autoreconf
5fa3867
	diff -rpu elfutils-$(VERSION).orig elfutils-$(VERSION) | \
570047f
	filterdiff --remove-timestamps --strip=1 --addprefix=elfutils/ > $@.new
5fa3867
	mv $@.new $@