linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] udev makefile broken when EXTRAS=""
@ 2003-12-08 16:19 Martin Hicks
  2003-12-10  0:57 ` Greg KH
  2003-12-10  2:21 ` Martin Hicks
  0 siblings, 2 replies; 3+ messages in thread
From: Martin Hicks @ 2003-12-08 16:19 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 3079 bytes --]


Is anyone else seeing the makefile crap out when no EXTRAS are built?

I had to do the following to fix it.

-- 
Martin Hicks || mort@bork.org || PGP/GnuPG: 0x4C7F2BEE


# This is a BitKeeper generated patch for the following project:
# Project Name: udev
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.271   -> 1.272  
#	            Makefile	1.48    -> 1.49   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/12/08	mort@tomahawk.engr.sgi.com	1.272
# Fix Makefile to properly handle the case when EXTRAS is null.
# --------------------------------------------
#
diff -Nru a/Makefile b/Makefile
--- a/Makefile	Mon Dec  8 08:15:17 2003
+++ b/Makefile	Mon Dec  8 08:15:17 2003
@@ -139,11 +139,13 @@
 CFLAGS += -I$(PWD)/libsysfs
 
 all: $(ROOT)
-	@for target in $(EXTRAS) ; do \
-		echo $$target ; \
-		$(MAKE) prefix=$(prefix) LD="$(LD)" SYSFS="$(SYSFS)" \
-			-C $$target $@ ; \
-	done ; \
+	@if [ "$(EXTRAS)" != "" ] ; then \
+		for target in "$(EXTRAS)" ; do \
+			echo $$target ; \
+			$(MAKE) prefix=$(prefix) LD="$(LD)" SYSFS="$(SYSFS)" \
+				-C $$target $@ ; \
+		done ; \
+	fi ; \
 
 $(ROOT): $(LIBC)
 
@@ -202,11 +204,13 @@
 	 | xargs rm -f 
 	-rm -f core $(ROOT) $(GEN_HEADERS)
 	$(MAKE) -C klibc clean
-	@for target in $(EXTRAS) ; do \
-		echo $$target ; \
-		$(MAKE) prefix=$(prefix) LD="$(LD)" SYSFS="$(SYSFS)" \
-			-C $$target $@ ; \
-	done ; \
+	@if [ "$(EXTRAS)" != "" ] ; then \
+		for target in "$(EXTRAS)" ; do \
+			echo $$target ; \
+			$(MAKE) prefix=$(prefix) LD="$(LD)" SYSFS="$(SYSFS)" \
+				-C $$target $@ ; \
+		done ; \
+	fi ; \
 
 DISTFILES = $(shell find . \( -not -name '.' \) -print | grep -v CVS | grep -v "\.tar\.gz" | grep -v "\/\." | grep -v releases | grep -v BitKeeper | grep -v SCCS | grep -v "\.tdb" | grep -v "test\/sys" | sort )
 DISTDIR := $(RELEASE_NAME)
@@ -251,11 +255,13 @@
 	$(INSTALL_DATA) udev.permissions $(DESTDIR)$(configdir)
 	- rm -f $(DESTDIR)$(hotplugdir)/udev.hotplug
 	- ln -s $(sbindir)/$(ROOT) $(DESTDIR)$(hotplugdir)/udev.hotplug
-	@for target in $(EXTRAS) ; do \
-		echo $$target ; \
-		$(MAKE) prefix=$(prefix) LD="$(LD)" SYSFS="$(SYSFS)" \
-			-C $$target $@ ; \
-	done ; \
+	if [ "$(EXTRAS" != "" ] ; then \
+		for target in "$(EXTRAS)" ; do \
+			echo $$target ; \
+			$(MAKE) prefix=$(prefix) LD="$(LD)" SYSFS="$(SYSFS)" \
+				-C $$target $@ ; \
+		done ; \
+	fi ; \
 
 uninstall:
 	- rm $(hotplugdir)/udev.hotplug
@@ -267,10 +273,12 @@
 	- rmdir $(hotplugdir)
 	- rmdir $(configdir)
 	- rmdir $(udevdir)
-	@for target in $(EXTRAS) ; do \
-		echo $$target ; \
-		$(MAKE) prefix=$(prefix) LD="$(LD)" SYSFS="$(SYSFS)" \
-			-C $$target $@ ; \
-	done ; \
+	@if [ "$(EXTRAS)" != "" ] ; then \
+		for target in "$(EXTRAS)" ; do \
+			echo $$target ; \
+			$(MAKE) prefix=$(prefix) LD="$(LD)" SYSFS="$(SYSFS)" \
+				-C $$target $@ ; \
+		done ; \
+	fi ; \
 
 


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-12-10  2:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-08 16:19 [PATCH] udev makefile broken when EXTRAS="" Martin Hicks
2003-12-10  0:57 ` Greg KH
2003-12-10  2:21 ` Martin Hicks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).