rohrpost

A commandline mail client to change the world as we see it.
git clone git://r-36.net/rohrpost
Log | Files | Refs | LICENSE

commit ebeca7dc57a3e0d3cc0754103e230cab8080d821
parent 1dad292522c01d37fe78185877a577388ae36a77
Author: Quentin Rameau <quinq@fifth.space>
Date:   Sun,  7 Jun 2020 13:43:42 +0200

Makefile: quote pathnames

Signed-off-by: Christoph Lohmann <20h@r-36.net>

Diffstat:
Makefile | 28++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/Makefile b/Makefile @@ -62,38 +62,38 @@ bin: ${NAME} done install: all bin - mkdir -p ${DESTDIR}${PREFIX}/bin + mkdir -p '${DESTDIR}${PREFIX}/bin' cd bin; \ - cp ${NAME} ${DESTDIR}${PREFIX}/bin; \ + cp ${NAME} '${DESTDIR}${PREFIX}/bin'; \ for i in `ls -1`; \ do \ - if [ -e ${DESTDIR}${PREFIX}/bin/$$i ]; \ + if [ -e '${DESTDIR}${PREFIX}/bin/'$$i ]; \ then \ - rm -f ${DESTDIR}${PREFIX}/bin/$$i; \ + rm -f '${DESTDIR}${PREFIX}/bin/'$$i; \ fi; \ \ if [ ! -L $$i ]; \ then \ - cp $$i ${DESTDIR}${PREFIX}/bin; \ + cp $$i '${DESTDIR}${PREFIX}/bin'; \ else \ ln -sf ${NAME} \ - ${DESTDIR}${PREFIX}/bin/$$i; \ + '${DESTDIR}${PREFIX}/bin/'$$i; \ fi \ - done - mkdir -p ${DESTDIR}${SHAREPREFIX} - cp -rf tmpl ${DESTDIR}${SHAREPREFIX} - sed 's,SHAREPREFIX,${SHAREPREFIX},g' < bin/rpinit > ${DESTDIR}${PREFIX}/bin/rpinit - chmod 755 ${DESTDIR}${PREFIX}/bin/rpinit + done; \ + mkdir -p '${DESTDIR}${SHAREPREFIX}' + cp -rf tmpl '${DESTDIR}${SHAREPREFIX}' + sed 's,SHAREPREFIX,${SHAREPREFIX},g' < bin/rpinit > '${DESTDIR}${PREFIX}/bin/rpinit' + chmod 755 '${DESTDIR}${PREFIX}/bin/rpinit' uninstall: clean cd bin; \ for i in `ls -1`; \ do \ - rm -f ${DESTDIR}${PREFIX}/bin/$$i; \ + rm -f "${DESTDIR}${PREFIX}/bin/$$i"; \ done; \ - if [ -e ${DESTDIR}${PREFIX}/bin/${NAME} ]; \ + if [ -e '${DESTDIR}${PREFIX}/bin/${NAME}' ]; \ then \ - rm -f ${DESTDIR}${PREFIX}/bin/${NAME}; \ + rm -f '${DESTDIR}${PREFIX}/bin/${NAME}'; \ fi .PHONY: all clean dist install uninstall bin