rpms/systemtap/devel Makefile,1.1,1.2
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Wed Jul 19 22:31:37 UTC 2006
- Previous message (by thread): rpms/xorg-x11-server-utils/devel xorg-x11-server-utils.spec, 1.23, 1.24
- Next message (by thread): rpms/systemtap/devel .cvsignore, 1.4, 1.5 elfutils-portability.patch, 1.9, 1.10 sources, 1.17, 1.18 systemtap.spec, 1.25, 1.26
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: roland
Update of /cvs/dist/rpms/systemtap/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv23694
Modified Files:
Makefile
Log Message:
New import hacks, moved from ../FC-4/Makefile and updated for new world.
Index: Makefile
===================================================================
RCS file: /cvs/dist/rpms/systemtap/devel/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Makefile 22 Jul 2005 21:23:29 -0000 1.1
+++ Makefile 19 Jul 2006 22:31:35 -0000 1.2
@@ -4,3 +4,75 @@
SPECFILE = $(firstword $(wildcard *.spec))
include ../common/Makefile.common
+
+tarball = systemtap-$(VERSION).tar.gz
+
+ifeq ($(clobber),t)
+commit-check = :
+else
+commit-check = cvs -Q diff --brief > /dev/null 2>&1
+endif
+
+elfutils-version := $(shell awk '$$2 == "elfutils_version" { print $$3 }' \
+ systemtap.spec)
+eu-dir = ../../elfutils/devel
+$(eu-dir)/elfutils.spec: FORCE
+ cd $(@D) && cvs -Q update && $(commit-check)
+$(eu-dir)/%.tar.gz: $(eu-dir)/elfutils.spec
+ $(MAKE) -C $(@D) sources
+$(eu-dir)/%.patch: $(eu-dir)/elfutils.spec ;
+
+import-systemtap: $(tarball)
+ $(commit-check) systemtap.spec
+ tar -zf $(tarball) -xO '*.spec' > systemtap.spec
+ $(MAKE) upload-systemtap
+ touch $@
+
+upload-systemtap: $(tarball) \
+ $(addprefix $(eu-dir)/,\
+ elfutils-$(elfutils-version).tar.gz \
+ elfutils-portability.patch)
+ ln -f $(filter $(eu-dir)/%.tar.gz,$^) .
+ ln -f $(filter $(eu-dir)/%.patch,$^) .
+ $(MAKE) new-source FILES='$(filter-out %.patch,$^)'
+
+copy-sources-%: import-systemtap
+ cd ../$* && $(commit-check)
+ cp -f sources elfutils-portability.patch ../$*
+ ln -f elfutils-*.tar.gz $(tarball) ../$*
+
+propagate-%: copy-sources-%
+ cp -f systemtap.spec ../$*
+ touch $@
+
+# No automagic macros in beehive, only brew.
+propagate-RHEL-4: copy-sources-RHEL-4 ../RHEL-4/systemtap.spec
+ touch $@
+propagate-FC-4: copy-sources-FC-4 ../FC-4/systemtap.spec
+ touch $@
+
+../RHEL-4/systemtap.spec: systemtap.spec import-systemtap
+ @rm -f $@.new
+ (echo '%define dist .el4'; \
+ echo '%define rhel 4'; \
+ cat systemtap.spec) > $@.new
+ mv -f $@.new $@
+../FC-4/systemtap.spec: systemtap.spec import-systemtap
+ @rm -f $@.new
+ (echo '%define dist .fc4'; \
+ echo '%define fedora 4'; \
+ cat systemtap.spec) > $@.new
+ mv -f $@.new $@
+
+.PRECIOUS: propagate-% tag-%
+
+commit-%: propagate-%
+ cd ../$* && cvs commit -m'Automatic update to $(VERSION)'
+ touch $@
+
+tag-%: commit-%
+ cd ../$* && $(MAKE) tag
+ touch $@
+
+build-%: tag-%
+ cd ../$* && $(MAKE) build
- Previous message (by thread): rpms/xorg-x11-server-utils/devel xorg-x11-server-utils.spec, 1.23, 1.24
- Next message (by thread): rpms/systemtap/devel .cvsignore, 1.4, 1.5 elfutils-portability.patch, 1.9, 1.10 sources, 1.17, 1.18 systemtap.spec, 1.25, 1.26
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-cvs-commits
mailing list