diff options
author | Yoni Rabkin <yonirabkin@member.fsf.org> | 2014-05-30 13:30:56 -0400 |
---|---|---|
committer | Yoni Rabkin <yonirabkin@member.fsf.org> | 2014-05-30 13:30:56 -0400 |
commit | 90e8fcee1a5792446074f4b2a381877dbee6c7c6 (patch) | |
tree | b741151e145655ef1f7134413c3ef8374a96a0af /Makefile | |
parent | e62987b494c8ca8a63adec30e92aab3443ba0951 (diff) |
* Makefile: Only use ginstall-info if it exists.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -13,7 +13,9 @@ INFODIR=$(PREFIX)/info MAN1DIR=$(PREFIX)/share/man/man1 SITELISP=$(PREFIX)/share/emacs/site-lisp/emms -INSTALLINFO = /usr/bin/ginstall-info --info-dir=$(INFODIR) +GINSTALLINFO = /usr/bin/ginstall-info --info-dir=$(INFODIR) +# For systems without ginstall-info +INSTALLINFO = /usr/bin/install-info --info-dir=$(INFODIR) CHANGELOG_CMD = git log --pretty=medium --no-merges # The currently released version of EMMS @@ -42,10 +44,18 @@ install: install -m 644 $(ALLCOMPILED) $(SITELISP) install -m 0644 $(DOCDIR)emms.info $(INFODIR)/emms for p in $(MAN1PAGES) ; do $(GZIP) -9c $$p > $(MAN1DIR)/$$p.gz ; done - $(INSTALLINFO) $(DOCDIR)emms.info + if [ -x /usr/bin/ginstall-info ]; then \ + $(GINSTALLINFO) $(DOCDIR)emms.info; \ + else \ + $(INSTALLINFO) $(DOCDIR)emms.info; \ + fi remove-info: - $(INSTALLINFO) --remove $(DOCDIR)emms.info + if [ -x /usr/bin/ginstall-info ]; then \ + $(GINSTALLINFO) --remove $(DOCDIR)emms.info; \ + else \ + $(INSTALLINFO) --remove $(DOCDIR)emms.info; \ + fi ChangeLog: $(CHANGELOG_CMD) > $@ |