tMakefile - frsh - french command language interpreter (HTM) git clone git://src.adamsgaard.dk/frsh (DIR) Log (DIR) Files (DIR) Refs (DIR) README --- tMakefile (732B) --- 1 .POSIX: 2 3 NAME = frsh 4 VERSION = 0.1 5 6 # paths 7 PREFIX = /usr/local 8 MANPREFIX = ${PREFIX}/share/man 9 10 MAN1 = ${NAME}.1 11 BIN = ${NAME} 12 13 options: 14 @echo make targets: 15 @echo - test 16 @echo - install 17 @echo - uninstall 18 19 test: test.frsh 20 @if test "$$(./${BIN} test.frsh)" = "bonjour"; then \ 21 echo parfait; \ 22 else \ 23 echo kaput; \ 24 exit 1; \ 25 fi 26 27 install: 28 mkdir -p ${DESTDIR}${PREFIX}/bin 29 cp -f ${BIN} ${DESTDIR}${PREFIX}/bin 30 chmod 755 ${DESTDIR}${PREFIX}/bin/${BIN} 31 mkdir -p ${DESTDIR}${MANPREFIX}/man1 32 cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1/${MAN1} 33 chmod 644 ${DESTDIR}${MANPREFIX}/man1/${MAN1} 34 35 uninstall: 36 rm -f ${DESTDIR}${PREFIX}/bin/${BIN} 37 rm -f ${DESTDIR}${MANPREFIX}/man1/${MAN1} 38 39 .PHONY: options test install uninstall