mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
lscpumf, lshwc, and pai are system commands but the corresponding man pages are located in section 1 for user commands. Move the man pages to section 8 for system commands. Fixes: https://github.com/ibm-s390-linux/s390-tools/issues/135 Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
31 lines
701 B
Makefile
31 lines
701 B
Makefile
include ../common.mak
|
|
|
|
BIN_FILES = lscpumf chcpumf lshwc pai
|
|
MAN_FILES = lscpumf.8 chcpumf.8 lshwc.8 pai.8
|
|
|
|
all: $(BIN_FILES)
|
|
|
|
libs = $(rootdir)/libcpumf/libcpumf.a $(rootdir)/libutil/libutil.a
|
|
|
|
lscpumf: lscpumf.o $(libs)
|
|
chcpumf: chcpumf.o $(libs)
|
|
lshwc: lshwc.o $(libs)
|
|
pai: pai.o $(libs)
|
|
|
|
install: all install-man
|
|
$(INSTALL) -d -m 755 $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man8
|
|
for binf in $(BIN_FILES); do \
|
|
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 755 $$binf $(DESTDIR)$(BINDIR); \
|
|
done
|
|
|
|
clean:
|
|
rm -f *.o *~ $(BIN_FILES) core
|
|
|
|
install-man:
|
|
for man in $(MAN_FILES); do \
|
|
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 man/$$man \
|
|
$(DESTDIR)$(MANDIR)/man8 ; \
|
|
done
|
|
|
|
.PHONY: all install clean
|