SMOLNET PORTAL home about changes
Makefile - dossier - console collection manager
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
Makefile (869B)
---
1 # dossier – a console collection manage
2 # See the LICENSE file for copyright and license details.
3 .POSIX:
4
5 VERSION = 0.1
6
7 BIN = dossier
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
Response: application/gopher-menu
Original URLgopher://bitreich.org/1/scm/dossier/file/Makefile.gph
Content-Typeapplication/gopher-menu; charset=utf-8