syslinux: trivial cleanup

"echo ... | xargs cp -t" is a bit more complicated
compared to plain "copy ..."
This commit is contained in:
Michael Shigorin 2011-09-14 09:22:44 +03:00
parent f5178dee01
commit 368cfd26bd

View File

@ -45,10 +45,9 @@ cfg = $(wildcard cfg.in/??$(1).cfg)
#
# arguments get evaluated before recipe body execution thus prep
all: prep debug
@echo $(sort \
cp -pLt $(DSTDIR) -- $(sort \
$(foreach C,$(SYSLINUX_CFG),$(call cfg,$(C))) \
$(foreach M,$(SYSLINUX_MODULES),$(call cfg,$(M)))) \
| xargs cp -pLt $(DSTDIR) --
$(foreach M,$(SYSLINUX_MODULES),$(call cfg,$(M))))
@echo $(SYSLINUX_MODULES) > $(DSTDIR)/modules.list
@echo $(SYSLINUX_FILES) > $(DSTDIR)/files.list
@echo $(BOOTLOADER) > $(DSTDIR)/bootloader