1f59b42f0d768141b36e154dab1c1deae2949342 — Ariadna Vigo 3 months ago 68d08a5
Decoupled installation of terminfo profile from 'make install' target

This commit splits up the installation of the binaries, manpages, and
terminfo files. This is especially useful for terminfo files, because
some distributions ship dvtm terminfo files in their ncurses official
packages. Also, users might be interested in installing these files
onto their home folders (the default when tic is run unprivileged) or
other locations depending on their particular setup.
1 files changed, 8 insertions(+), 2 deletions(-)

M Makefile
M Makefile => Makefile +8 -2
@@ 37,19 37,25 @@ dist: clean
	@echo creating dist tarball
	@git archive --prefix=dvtm-$(VERSION)/ -o dvtm-$(VERSION).tar.gz HEAD

install: all
install: install-binary install-man install-terminfo

install-binary: all
	@mkdir -p $(DESTDIR)$(PREFIX)/bin
	@for b in $(BIN); do \
		echo "installing $(DESTDIR)$(PREFIX)/bin/$$b"; \
		cp -f "$$b" "$(DESTDIR)$(PREFIX)/bin" && \
		chmod 755 "$(DESTDIR)$(PREFIX)/bin/$$b"; \

	@echo installing manual page to $(DESTDIR)$(MANPREFIX)/man1
	@mkdir -p $(DESTDIR)$(MANPREFIX)/man1
	@for m in $(MANUALS); do \
		sed -e "s/VERSION/$(VERSION)/" < "$$m" >  "$(DESTDIR)$(MANPREFIX)/man1/$$m" && \
		chmod 644 "$(DESTDIR)$(MANPREFIX)/man1/$$m"; \

	@echo installing terminfo description
	@TERMINFO=$(TERMINFO) tic -s dvtm.info

@@ 61,4 67,4 @@ uninstall:
	@echo removing manual page from $(DESTDIR)$(MANPREFIX)/man1
	@rm -f $(DESTDIR)$(MANPREFIX)/man1/dvtm.1

.PHONY: all clean dist install uninstall debug
.PHONY: all clean dist install install-binary install-man install-terminfo uninstall debug