Skip to content

Instantly share code, notes, and snippets.

@hansdg1
Created August 30, 2017 18:48
Show Gist options
  • Save hansdg1/e81e9f41cc16a20e28775f6df8bc31de to your computer and use it in GitHub Desktop.
Save hansdg1/e81e9f41cc16a20e28775f6df8bc31de to your computer and use it in GitHub Desktop.
Makefile for tmux-xpanes
# DESTDIR is defined in dh_auto_install
# Ref: https://www.debian.org/doc/manuals/maint-guide/modify.ja.html
BINDIR=$(DESTDIR)/usr/local/bin
BIN1_DEST=bin/tmux-xpanes
BIN2_DEST=bin/xpanes
MANDIR=$(DESTDIR)/usr/local/share/man/man1
MAN1_DEST=man/tmux-xpanes.1
MAN2_DEST=man/xpanes.1
INSTALL?=/usr/bin/install
RM?=/bin/rm -f
all:
@echo "Run 'make install' to install"
install:
${INSTALL} -d ${BINDIR}
${INSTALL} -m755 ${BIN1_DEST} ${BINDIR}
${INSTALL} -m755 ${BIN2_DEST} ${BINDIR}
${INSTALL} -d ${MANDIR}
${INSTALL} -m644 ${MAN1_DEST} ${MANDIR}
${INSTALL} -m644 ${MAN2_DEST} ${MANDIR}
uninstall:
${RM} ${BINDIR}/${BIN1_DEST}
${RM} ${BINDIR}/${BIN2_DEST}
${RM} ${MANDIR}/${MAN2_DEST}
${RM} ${MANDIR}/${MAN2_DEST}
deinstall: uninstall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment