Add missing slashes in paths for make uninstall
authorJosh Headapohl <joshhead@gmail.com>
Fri, 24 Feb 2017 01:21:03 +0000 (20:21 -0500)
committerJosh Headapohl <joshhead@gmail.com>
Fri, 24 Feb 2017 01:21:03 +0000 (20:21 -0500)
Running make uninstall used to fail to remove binaries:
rm -vf /usr/local/binyosys /usr/local/binyosys-config #...etc

Fix Makefile so that it runs a command like this:
rm -vf /usr/local/bin/yosys /usr/local/bin/yosys-config #...etc

Makefile

index a6779334e01d058f02bf670a3e677045b3196eaf..e779cf20d4d18b52f7be283b2253d769ee6e76f4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -478,7 +478,7 @@ ifeq ($(ENABLE_LIBYOSYS),1)
 endif
 
 uninstall:
-       $(INSTALL_SUDO) rm -vf $(addprefix $(DESTDIR)$(BINDIR),$(notdir $(TARGETS)))
+       $(INSTALL_SUDO) rm -vf $(addprefix $(DESTDIR)$(BINDIR)/,$(notdir $(TARGETS)))
        $(INSTALL_SUDO) rm -rvf $(DESTDIR)$(DATDIR)
 ifeq ($(ENABLE_LIBYOSYS),1)
        $(INSTALL_SUDO) rm -vf $(DESTDIR)$(LIBDIR)/libyosys.so