[Ovirt-devel] [PATCH release] add "diff"; work with autoconfiscated subdirs

Jim Meyering jim at meyering.net
Mon Sep 8 16:43:48 UTC 2008


Build in cleaned "node" dir fails due to missing Makefile.
This also makes "make -f ovirt.mk status" and
"make -f ovirt.mk diff" output more useful, so you
can tell which parts belong to which subdirectories.

>From 796ec90ac69a6c65cfdf65c74d1087987e0062ff Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering at redhat.com>
Date: Mon, 8 Sep 2008 18:39:49 +0200
Subject: [PATCH release] add "diff"; work with autoconfiscated subdirs

* ovirt.mk (status): Add a "diff" target.
Print module/dir name and a line of =========.
(publish): Run autogen.sh and/or ./configure in directories like
node, that have been autoconfiscated.
---
 ovirt.mk |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/ovirt.mk b/ovirt.mk
index e9bff32..8b97ef4 100644
--- a/ovirt.mk
+++ b/ovirt.mk
@@ -43,11 +43,12 @@ bumprelease:
 bumpversion:
 	$(for_each_subdir)

-status:
+status diff:
 	for dir in $(SUBDIRS); do \
-		if test -d $$dir ; then \
-			(cd $$dir && git $@) || :; \
-		fi ; \
+	  if test -d $$dir ; then \
+	    echo ===== $$dir =============================================== ;\
+	    (cd $$dir && git $@) || :; \
+	  fi ; \
 	done

 build: publish
@@ -56,6 +57,8 @@ publish:
 		if ! test -d $$dir ; then \
 			$(MAKE) $$dir || exit 1 ; \
 		fi ; \
+		( cd $$dir; test ! -f Makefile.in && ./autogen.sh ); \
+		( cd $$dir; test ! -f Makefile && ./configure ); \
 		$(MAKE) -C $$dir $@ || exit 1 ; \
 	done
 	rm -f rpms
--
1.6.0.1.196.g01914




More information about the ovirt-devel mailing list