elfutils/Makefile

18 lines
569 B
Makefile

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