elfutils/Makefile

64 lines
2.1 KiB
Makefile
Raw Normal View History

2004-09-09 04:28:54 +00:00
# Makefile for source rpm: elfutils
2005-08-24 22:25:46 +00:00
# $Id: Makefile,v 1.10 2005/08/10 07:15:24 roland Exp $
2004-09-09 04:28:54 +00:00
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-vr = $(VERSION)-0.$(RELEASE)
portable.srpm = elfutils-$(portable-vr).src.rpm
$(portable.srpm): elfutils-portable.spec elfutils-portability.patch sources
2005-07-29 20:18:25 +00:00
$(RPM_WITH_DIRS) --nodeps -bs $<
portable-dist = 3.0E-scratch
portable-beehive = $(redhat)/dist/$(portable-dist)/elfutils/$(portable-vr)
ifeq (,$(wildcard /mnt/redhat/dist/.))
redhat = datadump.devel.redhat.com::redhat
rsync-to = devserv.devel.redhat.com:dist/elfutils/devel/systemtap-dist/
beehive-dep =
else
redhat = /mnt/redhat
$(portable-beehive): $(portable.srpm)
$(BHC_CLIENT) $(BHC_FLAGS) dist-$(portable-dist) $<
rsync-to = $(public)
beehive-dep = $(portable-beehive)
portable-build: $(portable-beehive)
endif
dist-files = README.elfutils systemtap-elfutils.repo \
elfutils-$(VERSION).tar.gz elfutils-portability.patch
rsync-files = --exclude=tests $(portable-beehive)/
public = sources.redhat.com:/sourceware/ftp/anonftp/pub/systemtap/elfutils/
RSYNC = RSYNC_RSH=ssh rsync
systemtap-dist: $(beehive-dep) $(dist-files)
@mkdir -p $@
2005-08-24 22:25:46 +00:00
$(RSYNC) -a --delete --progress -v $(rsync-files) systemtap-dist/
ln $(dist-files) systemtap-dist/
systemtap-dist-createrepo: systemtap-dist
ifneq ($(wildcard /usr/bin/createrepo),)
createrepo -q $<
endif
systemtap-sync: systemtap-dist-createrepo
2005-08-24 22:25:46 +00:00
$(RSYNC) -az --delete --progress -v systemtap-dist/ $(rsync-to)