Commit 368cfd26 authored by Michael Shigorin's avatar Michael Shigorin

syslinux: trivial cleanup

"echo ... | xargs cp -t" is a bit more complicated compared to plain "copy ..."
parent f5178dee
...@@ -45,10 +45,9 @@ cfg = $(wildcard cfg.in/??$(1).cfg) ...@@ -45,10 +45,9 @@ cfg = $(wildcard cfg.in/??$(1).cfg)
# #
# arguments get evaluated before recipe body execution thus prep # arguments get evaluated before recipe body execution thus prep
all: prep debug all: prep debug
@echo $(sort \ cp -pLt $(DSTDIR) -- $(sort \
$(foreach C,$(SYSLINUX_CFG),$(call cfg,$(C))) \ $(foreach C,$(SYSLINUX_CFG),$(call cfg,$(C))) \
$(foreach M,$(SYSLINUX_MODULES),$(call cfg,$(M)))) \ $(foreach M,$(SYSLINUX_MODULES),$(call cfg,$(M))))
| xargs cp -pLt $(DSTDIR) --
@echo $(SYSLINUX_MODULES) > $(DSTDIR)/modules.list @echo $(SYSLINUX_MODULES) > $(DSTDIR)/modules.list
@echo $(SYSLINUX_FILES) > $(DSTDIR)/files.list @echo $(SYSLINUX_FILES) > $(DSTDIR)/files.list
@echo $(BOOTLOADER) > $(DSTDIR)/bootloader @echo $(BOOTLOADER) > $(DSTDIR)/bootloader
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment