summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakropel1@rochester.rr.com <akropel1@rochester.rr.com>2003-12-17 18:32:53 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:09 -0700
commit49cd31b33e6fb21f8dc44fa1751b7aea0a74c6ec (patch)
tree783f6df8fabade157cac4f6f9232b6e9eebb7f6a
parent281ff00a611aa0a71e43dd4355b0caa918d820d2 (diff)
[PATCH] Allow build with empty EXTRAS
Need to let the shell expand $EXTRAS so it can properly detect an empty list. Without this patch, the build fails whenever $EXTRAS is empty.
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index c5c05d615d..c2ed659531 100644
--- a/Makefile
+++ b/Makefile
@@ -145,7 +145,7 @@ endif
CFLAGS += -I$(PWD)/libsysfs
all: $(ROOT)
- @for target in $(EXTRAS) ; do \
+ @extras="$(EXTRAS)" ; for target in $$extras ; do \
echo $$target ; \
$(MAKE) prefix=$(prefix) LD="$(LD)" SYSFS="$(SYSFS)" \
-C $$target $@ ; \
@@ -223,7 +223,7 @@ clean:
| xargs rm -f
-rm -f core $(ROOT) $(GEN_HEADERS) $(GEN_CONFIGS)
$(MAKE) -C klibc clean
- @for target in $(EXTRAS) ; do \
+ @extras="$(EXTRAS)" ; for target in $$extras ; do \
echo $$target ; \
$(MAKE) prefix=$(prefix) LD="$(LD)" SYSFS="$(SYSFS)" \
-C $$target $@ ; \
@@ -286,7 +286,7 @@ install: install-dbus-policy all $(GEN_CONFIGS)
$(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 \
+ @extras="$(EXTRAS)" ; for target in $$extras ; do \
echo $$target ; \
$(MAKE) prefix=$(prefix) LD="$(LD)" SYSFS="$(SYSFS)" \
-C $$target $@ ; \
@@ -303,7 +303,7 @@ uninstall: uninstall-dbus-policy
- rmdir $(hotplugdir)
- rmdir $(configdir)
- rmdir $(udevdir)
- @for target in $(EXTRAS) ; do \
+ @extras="$(EXTRAS)" ; for target in $$extras ; do \
echo $$target ; \
$(MAKE) prefix=$(prefix) LD="$(LD)" SYSFS="$(SYSFS)" \
-C $$target $@ ; \