root/doc/install-info.mk

/* [<][>][^][v][top][bottom][index][help] */
prefix ?= ~
infodir ?= $(prefix)/share/info

GZIP := gzip
INSTALL := install
INSTALL-INFO := install-info

.PHONY: install-info uninstall-info

install-info: $(INSTALL-INFO-TARGETS)
        $(INSTALL) -d $(infodir)
        $(INSTALL) $< $(infodir)/
        $(INSTALL-INFO) $(infodir)/$(notdir $<) $(infodir)/dir
        $(GZIP) -f $(infodir)/$(notdir $<)

uninstall-info:
        $(INSTALL-INFO) --delete $(addprefix $(infodir)/,$(notdir $(INSTALL-INFO-TARGETS))) $(infodir)/dir
        $(RM) $(addprefix $(infodir)/,$(notdir $(INSTALL-INFO-TARGETS)))

/* [<][>][^][v][top][bottom][index][help] */