Files
s390-tools/zmemtopo/Makefile
Szabina Korbai b444e71ee3 zmemtopo: Implement zsh and bash autocompletion
Add generation of shell autocompletion scripts.

Acked-by: Steffen Eiden <seiden@linux.ibm.com>
Tested-by: Mete Durlu <meted@linux.ibm.com>
Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com>
Signed-off-by: Szabina Korbai <szkorbai@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
2026-04-30 08:50:10 +02:00

31 lines
661 B
Makefile

#
# Copyright IBM Corp. 2025
#
# s390-tools is free software; you can redistribute it and/or modify
# it under the terms of the MIT license. See LICENSE for details.
#
include ../common.mak
zsh-completions = _zmemtopo
bash-completions = zmemtopo.bash
include ../common_autocomp.mak
libs = $(rootdir)/libutil/libutil.a
all: zmemtopo
zmemtopo: zmemtopo.o $(libs)
install: all
$(INSTALL) -d -m 755 $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man8
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 755 zmemtopo $(DESTDIR)$(BINDIR)
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 zmemtopo.8 \
$(DESTDIR)$(MANDIR)/man8
clean:
rm -f *.o *~ zmemtopo
.PHONY: all install clean