1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

[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.
This commit is contained in:
akropel1@rochester.rr.com 2003-12-17 18:32:53 -08:00 committed by Greg KH
parent 281ff00a61
commit 49cd31b33e

View File

@ -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 $@ ; \