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 32c96b344276b4652facae66c456991854ccb17e
parent 3a4526a463c4c7c3990559e71e71d37ea9170286
Author: Quentin Rameau <quinq@fifth.space>
Date:   Sun,  7 Jun 2020 14:05:05 +0200

Makefile: fix uninstalling tmpl

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

Diffstat:
Makefile | 11+++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -91,7 +91,7 @@ uninstall: clean do \ rm -f $$i; \ done ) - cd bin; \ + ( cd bin; \ for i in `ls -1`; \ do \ rm -f "${DESTDIR}${PREFIX}/bin/$$i"; \ @@ -99,7 +99,14 @@ uninstall: clean if [ -e '${DESTDIR}${PREFIX}/bin/${NAME}' ]; \ then \ rm -f '${DESTDIR}${PREFIX}/bin/${NAME}'; \ - fi + fi ) + ( cd tmpl; \ + for i in $$(ls -1); \ + do \ + rm -f '${DESTDIR}${SHAREPREFIX}/tmpl/'$$i; \ + done ) + rmdir '${DESTDIR}${SHAREPREFIX}/tmpl' \ + '${DESTDIR}${SHAREPREFIX}' .PHONY: all clean dist install uninstall bin