From: Martin Hicks <mort@bork.org>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] udev makefile broken when EXTRAS=""
Date: Mon, 08 Dec 2003 16:19:08 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-107090041529720@msgid-missing> (raw)
[-- 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 --]
next reply other threads:[~2003-12-08 16:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-08 16:19 Martin Hicks [this message]
2003-12-10 0:57 ` [PATCH] udev makefile broken when EXTRAS="" Greg KH
2003-12-10 2:21 ` Martin Hicks
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-hotplug-107090041529720@msgid-missing \
--to=mort@bork.org \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.