mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Add generation of shell autocompletion scripts. Acked-by: Steffen Eiden <seiden@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>
37 lines
728 B
Makefile
37 lines
728 B
Makefile
# Common definitions
|
|
include ../../common.mak
|
|
|
|
zsh-completions = _dump2tar
|
|
bash-completions = dump2tar.bash
|
|
|
|
include ../../common_autocomp.mak
|
|
|
|
ALL_CPPFLAGS += -I../include -Wno-unused-parameter
|
|
LDLIBS += -lpthread -lrt
|
|
ifneq ($(HAVE_ZLIB),0)
|
|
ALL_CPPFLAGS += -DHAVE_ZLIB
|
|
LDLIBS += -lz
|
|
endif
|
|
|
|
core_objects = buffer.o dref.o global.o dump.o idcache.o misc.o strarray.o tar.o
|
|
libs = $(rootdir)/libutil/libutil.a
|
|
|
|
check_dep_zlib:
|
|
$(call check_dep, \
|
|
"dump2tar", \
|
|
"zlib.h", \
|
|
"zlib-devel or libz-dev", \
|
|
"HAVE_ZLIB=0")
|
|
|
|
all: check_dep_zlib dump2tar
|
|
|
|
dump2tar: $(core_objects) dump2tar.o $(libs)
|
|
|
|
install: dump2tar
|
|
$(INSTALL) -c dump2tar $(DESTDIR)$(USRBINDIR)
|
|
|
|
clean:
|
|
@rm -f dump2tar *.o
|
|
|
|
.PHONY: all install clean
|