diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2016-06-01 14:15:38 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2016-06-01 14:15:38 +0000 |
commit | b74ecd2cc2094c9644123e48ac3e2400fd8a3674 (patch) | |
tree | 8dbdba84d3f38fb2ea33a5f18fea7d42d16e3f8d /Makefile.in | |
parent | Adding upstream version 1.4. (diff) | |
download | plzip-b74ecd2cc2094c9644123e48ac3e2400fd8a3674.tar.xz plzip-b74ecd2cc2094c9644123e48ac3e2400fd8a3674.zip |
Adding upstream version 1.5.upstream/1.5
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-rw-r--r-- | Makefile.in | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in index 1652cb6..8f07828 100644 --- a/Makefile.in +++ b/Makefile.in @@ -6,6 +6,7 @@ INSTALL_DATA = $(INSTALL) -m 644 INSTALL_DIR = $(INSTALL) -d -m 755 LIBS = -llz -lpthread SHELL = /bin/sh +CAN_RUN_INSTALLINFO = $(SHELL) -c "install-info --version" > /dev/null 2>&1 objs = arg_parser.o file_index.o compress.o dec_stdout.o dec_stream.o \ decompress.o main.o @@ -72,7 +73,9 @@ install-info : if [ ! -d "$(DESTDIR)$(infodir)" ] ; then $(INSTALL_DIR) "$(DESTDIR)$(infodir)" ; fi -rm -f "$(DESTDIR)$(infodir)/$(pkgname).info"* $(INSTALL_DATA) $(VPATH)/doc/$(pkgname).info "$(DESTDIR)$(infodir)/$(pkgname).info" - -install-info --info-dir="$(DESTDIR)$(infodir)" "$(DESTDIR)$(infodir)/$(pkgname).info" + -if $(CAN_RUN_INSTALLINFO) ; then \ + install-info --info-dir="$(DESTDIR)$(infodir)" "$(DESTDIR)$(infodir)/$(pkgname).info" ; \ + fi install-info-compress : install-info lzip -v -9 "$(DESTDIR)$(infodir)/$(pkgname).info" @@ -95,7 +98,9 @@ uninstall-bin : -rm -f "$(DESTDIR)$(bindir)/$(progname)" uninstall-info : - -install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$(pkgname).info" + -if $(CAN_RUN_INSTALLINFO) ; then \ + install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$(pkgname).info" ; \ + fi -rm -f "$(DESTDIR)$(infodir)/$(pkgname).info"* uninstall-man : |