elfutils/Makefile

70 lines
2.3 KiB
Makefile
Raw Normal View History

2004-09-09 04:28:54 +00:00
# Makefile for source rpm: elfutils
2007-02-06 00:27:55 +00:00
# $Id: Makefile,v 1.18 2007/01/11 08:51:15 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
2006-06-15 08:32:06 +00:00
MONOTONE = mtn
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
2006-06-15 08:32:06 +00:00
cd elfutils-master; autoreconf; rm -rf autom4te.cache _MTN
cd elfutils-portable; autoreconf; rm -rf autom4te.cache _MTN
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 $@
2006-10-10 19:24:29 +00:00
portable-r = 0.$(subst $(DIST),,$(RELEASE))
portable-vr = $(VERSION)-$(portable-r)
portable.srpm = elfutils-$(portable-vr).src.rpm
2005-12-08 01:48:13 +00:00
$(portable.srpm): elfutils-portable.spec elfutils-portability.patch \
elfutils-$(VERSION).tar.gz
2005-07-29 20:18:25 +00:00
$(RPM_WITH_DIRS) --nodeps -bs $<
2005-12-07 20:11:06 +00:00
portable-srpm: $(portable.srpm)
portable-dist = 3.0E-scratch
2006-10-10 19:24:29 +00:00
portable-build = \
$(redhat)/brewroot/packages/elfutils/$(VERSION)/$(portable-r)
2007-02-06 00:27:55 +00:00
ifeq (,$(wildcard /mnt/redhat/brew/packages/elfutils))
redhat = datadump.devel.redhat.com::redhat
rsync-to = devserv.devel.redhat.com:dist/elfutils/devel/systemtap-dist/
2006-10-10 19:24:29 +00:00
build-dep = $(portable.srpm)
else
redhat = /mnt/redhat
2006-10-10 19:24:29 +00:00
$(portable-build): $(portable.srpm)
$(BUILD_CLIENT) $(BUILD_FLAGS) dist-$(portable-dist) $<
rsync-to = $(public)
2006-10-10 19:24:29 +00:00
build-dep = $(portable-build)/src/$(portable.srpm)
portable-build: $(portable-build)
2007-01-11 08:51:15 +00:00
$(build-dep): $(portable-build)
endif
2006-10-10 19:24:29 +00:00
dist-files = README.elfutils systemtap-elfutils.repo
rsync-files = --exclude=tests --exclude=data $(portable-build)/
public = sources.redhat.com:/sourceware/ftp/anonftp/pub/systemtap/elfutils/
RSYNC = RSYNC_RSH=ssh rsync
2006-10-10 19:24:29 +00:00
systemtap-dist: $(build-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/
2006-10-10 19:24:29 +00:00
ln -v `rpm -qlp $<` systemtap-dist/
systemtap-dist-createrepo: systemtap-dist
ifneq ($(wildcard /usr/bin/createrepo),)
createrepo -q `cd $<; /bin/pwd`
endif
systemtap-sync: systemtap-dist-createrepo
2005-08-24 22:25:46 +00:00
$(RSYNC) -az --delete --progress -v systemtap-dist/ $(rsync-to)