URI: 
       Makefile - notes - a console notes manager using git
   DIR Log
   DIR Files
   DIR Refs
   DIR Tags
   DIR LICENSE
       ---
       Makefile (871B)
       ---
            1 # notes – a console notes manager using git
            2 # See the LICENSE file for copyright and license details.
            3 .POSIX:
            4 
            5 VERSION = 0.1
            6 
            7 BIN    = notes
            8 PREFIX = /usr
            9 BINDIR = ${PREFIX}/bin
           10 MANDIR = ${PREFIX}/share/man
           11 
           12 all:
           13 
           14 install: 
           15         @echo installing executable to "${DESTDIR}${PREFIX}/bin"
           16         @mkdir -p "${DESTDIR}${BINDIR}"
           17         @cp -f "${BIN}" "${DESTDIR}${BINDIR}/${BIN}"
           18         @chmod 755 "${DESTDIR}${BINDIR}/${BIN}"
           19         @echo installing manual page to ${DESTDIR}${MANDIR}/man1
           20         @mkdir -p ${DESTDIR}${MANDIR}/man1
           21         @sed "s/VERSION/${VERSION}/g" < ${BIN}.1 > ${DESTDIR}${MANDIR}/man1/${BIN}.1
           22         @chmod 644 ${DESTDIR}${MANDIR}/man1/${BIN}.1
           23 
           24 uninstall:
           25         @echo removing executable file from "${DESTDIR}${PREFIX}/bin"
           26         @rm -f "${DESTDIR}${BINDIR}/${BIN}"
           27         @echo removing manual page from ${DESTDIR}${MANDIR}/man1
           28         @rm -f ${DESTDIR}${MANDIR}/man1/${BIN}.1
           29 
           30 .PHONY: all install uninstall clean