Makefile: fix 'make uninstall DESTDIR=foo' for #1311 (#1314)

Uninstall was prepending `$(DESTDIR)` twice to libdir:

```Makefile
LIBDIR = $(DESTDIR)$(PREFIX)/$(LIBDIRARCH)
...
uninstall:
    ...
    rm -f $(DESTDIR)$(LIBDIR)/lib$(LIBNAME).*
```

The change drops prefixing on `uninstall` site.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
This commit is contained in:
Sergei Trofimovich 2018-12-19 07:52:20 +00:00 committed by Nguyen Anh Quynh
parent d8d43be2b7
commit c4714ce0e8

View File

@ -416,7 +416,7 @@ endif
uninstall:
rm -rf $(DESTDIR)$(INCDIR)/$(LIBNAME)
rm -f $(DESTDIR)$(LIBDIR)/lib$(LIBNAME).*
rm -f $(LIBDIR)/lib$(LIBNAME).*
rm -f $(PKGCFGDIR)/$(LIBNAME).pc
rm -f $(BINDIR)/cstool