2004-09-09 04:28:54 +00:00
|
|
|
# Makefile for source rpm: elfutils
|
|
|
|
# $Id$
|
|
|
|
NAME := elfutils
|
2005-07-29 20:24:01 +00:00
|
|
|
SPECFILE = elfutils.spec
|
2004-09-09 04:28:54 +00:00
|
|
|
|
|
|
|
include ../common/Makefile.common
|
2005-05-08 22:43:51 +00:00
|
|
|
|
2005-07-29 00:12:10 +00:00
|
|
|
MONOTONE = monotone
|
2005-06-09 22:29:12 +00:00
|
|
|
|
|
|
|
elfutils-portability.patch: elfutils-$(VERSION).tar.gz
|
|
|
|
@rm -rf elfutils-master elfutils-portable
|
2005-07-29 00:12:10 +00:00
|
|
|
$(MONOTONE) checkout -b com.redhat.elfutils elfutils-master
|
|
|
|
$(MONOTONE) checkout -b com.redhat.elfutils.portable elfutils-portable
|
|
|
|
cd elfutils-master; autoreconf; rm -rf autom4te.cache MT
|
|
|
|
cd elfutils-portable; autoreconf; rm -rf autom4te.cache MT
|
2005-06-09 22:29:12 +00:00
|
|
|
diff -rpu elfutils-master elfutils-portable | \
|
2005-05-10 05:57:44 +00:00
|
|
|
filterdiff --remove-timestamps --strip=1 --addprefix=elfutils/ > $@.new
|
2005-05-08 22:43:51 +00:00
|
|
|
mv $@.new $@
|
2005-07-29 20:18:25 +00:00
|
|
|
|
|
|
|
elfutils-portable.spec: elfutils.spec
|
|
|
|
(echo '%define _with_compat 1'; cat $<) > $@.new
|
|
|
|
mv -f $@.new $@
|
|
|
|
|
|
|
|
portable: elfutils-$(VERSION)-0.$(RELEASE).src.rpm
|
|
|
|
elfutils-$(VERSION)-0.$(RELEASE).src.rpm: elfutils-portable.spec \
|
|
|
|
elfutils-portability.patch \
|
|
|
|
sources
|
|
|
|
$(RPM_WITH_DIRS) --nodeps -bs $<
|