Added "make uninstall"
authorClifford Wolf <clifford@clifford.at>
Sat, 7 Feb 2015 16:46:46 +0000 (17:46 +0100)
committerClifford Wolf <clifford@clifford.at>
Sat, 7 Feb 2015 16:46:46 +0000 (17:46 +0100)
Makefile

index da174497ff07f2ac5681534df90057329ef09d9a..679f361986a6c99d362537feac7d2e942e7e4beb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -309,6 +309,10 @@ install: $(TARGETS) $(EXTRA_TARGETS)
        $(INSTALL_SUDO) mkdir -p $(DESTDIR)/share/yosys
        $(INSTALL_SUDO) cp -r share/. $(DESTDIR)/share/yosys/.
 
+uninstall:
+       $(INSTALL_SUDO) rm -vf $(addprefix $(DESTDIR)/bin/,$(notdir $(TARGETS)))
+       $(INSTALL_SUDO) rm -rvf $(DESTDIR)/share/yosys/
+
 manual: $(TARGETS) $(EXTRA_TARGETS)
        cd manual && bash appnotes.sh
        cd manual && bash presentation.sh