mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Until recently dumpconf might have been installed in two different locations, /etc/init.d/ and /lib/s390-tools/. As dumpconf is now part of the helper scripts in the scripts directory, extend the installation rule and add the %S390_TOOLS_VERSION% wildcard to the script along the way for correct version output. The installation rule in the systemd/Makefile is removed, bringing it in line with cpictl. Acked-by: Stefan Haberland <sth@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
40 lines
1000 B
Makefile
40 lines
1000 B
Makefile
include ../common.mak
|
|
|
|
SCRIPTS = dbginfo.sh zfcpdbf zipl-switch-to-blscfg scsi_logging_level
|
|
SCRIPTS += sclpdbf
|
|
# Helper scripts controlled by corresponding systemd services
|
|
SD_HELPER_SCRIPTS = cpictl dumpconf
|
|
MAN_PAGES = dbginfo.sh.1 zfcpdbf.1 zipl-switch-to-blscfg.1
|
|
|
|
all:
|
|
|
|
install:
|
|
$(INSTALL) -d -m 755 $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
|
|
@for i in $(SCRIPTS); \
|
|
do \
|
|
cat $$i | \
|
|
sed -e 's/%S390_TOOLS_VERSION%/$(S390_TOOLS_RELEASE)/' \
|
|
>$(DESTDIR)$(BINDIR)/$$i; \
|
|
chown $(OWNER):$(GROUP) $(DESTDIR)$(BINDIR)/$$i; \
|
|
chmod 755 $(DESTDIR)$(BINDIR)/$$i; \
|
|
done
|
|
|
|
@for i in $(SD_HELPER_SCRIPTS); \
|
|
do \
|
|
cat $$i | \
|
|
sed -e 's/%S390_TOOLS_VERSION%/$(S390_TOOLS_RELEASE)/' \
|
|
>$(DESTDIR)$(TOOLS_LIBDIR)/$$i; \
|
|
chown $(OWNER):$(GROUP) $(DESTDIR)$(TOOLS_LIBDIR)/$$i; \
|
|
chmod 755 $(DESTDIR)$(TOOLS_LIBDIR)/$$i; \
|
|
done
|
|
|
|
@for i in $(MAN_PAGES); \
|
|
do \
|
|
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 $$i \
|
|
$(DESTDIR)$(MANDIR)/man1; \
|
|
done
|
|
|
|
clean:
|
|
|
|
.PHONY: all install clean
|