commit 3a4526a463c4c7c3990559e71e71d37ea9170286
parent ebeca7dc57a3e0d3cc0754103e230cab8080d821
Author: Quentin Rameau <quinq@fifth.space>
Date: Sun, 7 Jun 2020 13:54:56 +0200
Makefile: fix uninstalling symlinks
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
@@ -86,6 +86,11 @@ install: all bin
chmod 755 '${DESTDIR}${PREFIX}/bin/rpinit'
uninstall: clean
+ ( cd '${DESTDIR}${PREFIX}/bin' && \
+ for i in $$(./${NAME} -i); \
+ do \
+ rm -f $$i; \
+ done )
cd bin; \
for i in `ls -1`; \
do \