~kaction/dvtm

1bbc0270a774faa4fd40603df3ae8f22c584cd9d — Dmitry Bogatov 2 months ago 938bf65 + 1f59b42 next
Merge branch 'support/decouple-install-targets' into next

# By Ariadna Vigo (1) and Dmitry Bogatov (1)
* support/decouple-install-targets:
  Decoupled installation of terminfo profile from 'make install' target
  Release 0.15.1
2 files changed, 11 insertions(+), 3 deletions(-)

M Makefile
M README.md
M Makefile => Makefile +9 -3
@@ 4,7 4,7 @@ SRC = dvtm.c vt.c
BIN = dvtm dvtm-status dvtm-editor dvtm-pager
MANUALS = dvtm.1 dvtm-editor.1 dvtm-pager.1

VERSION = $(shell git describe --always --dirty 2>/dev/null || echo "0.15-git")
VERSION = $(shell git describe --always --dirty 2>/dev/null || echo "0.15.1-git")
CFLAGS += -DVERSION=\"${VERSION}\"
DEBUG_CFLAGS = ${CFLAGS} -UNDEBUG -O0 -g -ggdb -Wall -Wextra -Wno-unused-parameter



@@ 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"; \
	done

install-man:
	@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"; \
	done

install-terminfo:
	@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

M README.md => README.md +2 -0
@@ 10,6 10,8 @@ programs.

## News

- [dvtm-0.15.1](https://git.sr.ht/~kaction/dvtm/archive/v0.15.1.tar.gz)
  released (05.03.2021)
- [dvtm-0.15](http://www.brain-dump.org/projects/dvtm/dvtm-0.15.tar.gz)
  [released](http://lists.suckless.org/dev/1601/28095.html) (09.01.2016)
- [dvtm-0.14](http://www.brain-dump.org/projects/dvtm/dvtm-0.14.tar.gz)