package/olsr: use make foreach loops
Replace shell for loops by make foreach loops Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
e2e57d5678
commit
b71b13f2f1
@ -18,19 +18,19 @@ OLSR_DEPENDENCIES = host-flex host-bison
|
||||
|
||||
define OLSR_BUILD_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) ARCH=$(KERNEL_ARCH) -C $(@D) olsrd
|
||||
for p in $(OLSR_PLUGINS) ; do \
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) ARCH=$(KERNEL_ARCH) -C $(@D)/lib/$$p ; \
|
||||
done
|
||||
$(foreach p,$(OLSR_PLUGINS), \
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) ARCH=$(KERNEL_ARCH) -C $(@D)/lib/$(p)
|
||||
)
|
||||
endef
|
||||
|
||||
define OLSR_INSTALL_TARGET_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) \
|
||||
prefix="/usr" install_bin
|
||||
for p in $(OLSR_PLUGINS) ; do \
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/lib/$$p \
|
||||
$(foreach p,$(OLSR_PLUGINS), \
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/lib/$(p) \
|
||||
LDCONFIG=/bin/true DESTDIR=$(TARGET_DIR) \
|
||||
prefix="/usr" install ; \
|
||||
done
|
||||
prefix="/usr" install
|
||||
)
|
||||
$(INSTALL) -D -m 0644 $(@D)/files/olsrd.conf.default.lq \
|
||||
$(TARGET_DIR)/etc/olsrd/olsrd.conf
|
||||
endef
|
||||
|
Loading…
Reference in New Issue
Block a user