mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Since coreutils v9.1 commit 8f31074cb ("chown: warn about USER.GROUP")
chown utility now warns about using of wrong separator for USER and
GROUP options.
Closes: https://github.com/ibm-s390-linux/s390-tools/pull/145
Signed-off-by: Nikolay Gueorguiev <nikolay.gueorguiev@suse.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
29 lines
862 B
Makefile
29 lines
862 B
Makefile
# Install the netboot image build scripts as samples
|
|
|
|
include ../common.mak
|
|
|
|
SCRIPTS = mk-s390image mk-pxelinux-ramfs
|
|
NETBOOT_SAMPLEDIR=$(TOOLS_DATADIR)/netboot
|
|
|
|
all:
|
|
|
|
install: install-scripts
|
|
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 \
|
|
Dockerfile Makefile.pxelinux.0 README.md mk-s390image.1 \
|
|
$(DESTDIR)$(NETBOOT_SAMPLEDIR)
|
|
|
|
install-scripts: $(SCRIPTS)
|
|
@if [ ! -d $(DESTDIR)$(NETBOOT_SAMPLEDIR) ]; then \
|
|
mkdir -p $(DESTDIR)$(NETBOOT_SAMPLEDIR); \
|
|
chown $(OWNER):$(GROUP) $(DESTDIR)$(NETBOOT_SAMPLEDIR); \
|
|
chmod 755 $(DESTDIR)$(NETBOOT_SAMPLEDIR); \
|
|
fi; \
|
|
for i in $^; do \
|
|
$(SED) -e 's/%S390_TOOLS_VERSION%/$(S390_TOOLS_RELEASE)/' \
|
|
< $$i >$(DESTDIR)$(NETBOOT_SAMPLEDIR)/$$i; \
|
|
chown $(OWNER):$(GROUP) $(DESTDIR)$(NETBOOT_SAMPLEDIR)/$$i; \
|
|
chmod 755 $(DESTDIR)$(NETBOOT_SAMPLEDIR)/$$i; \
|
|
done
|
|
|
|
.PHONY: all install clean install-scripts
|