diff --git a/dist/tools/edbg/Makefile b/dist/tools/edbg/Makefile
index fabea13a48072f1f60cdd1114dc8d9c0fbcfe4c0..a9b7fb39401bba83d7c66599aef324fd81c023b3 100644
--- a/dist/tools/edbg/Makefile
+++ b/dist/tools/edbg/Makefile
@@ -1,6 +1,6 @@
 PKG_NAME=edbg
 PKG_URL=https://github.com/ataradov/edbg
-PKG_VERSION=76f85abdea212ba23760723cce15e00ca4ae4b76
+PKG_VERSION=a59b16ea18ea095135362035dcfd990ca1dd3af2
 PKG_LICENSE=BSD-3-Clause
 PKG_BUILDDIR=$(CURDIR)/bin
 
diff --git a/makefiles/tools/targets.inc.mk b/makefiles/tools/targets.inc.mk
index 352f146fec7fa54f0b44efcd782ad642167547b9..74f1de61d1b5a6fb60a6f8092f42faaefa14d8f9 100644
--- a/makefiles/tools/targets.inc.mk
+++ b/makefiles/tools/targets.inc.mk
@@ -12,7 +12,7 @@ $(RIOTTOOLS)/bossa/bossac:
 	@make -C $(RIOTTOOLS)/bossa
 	@echo "[INFO] bossac binary successfully build!"
 
-$(RIOTTOOLS)/edbg/edbg:
+$(RIOTTOOLS)/edbg/edbg: $(RIOTTOOLS)/edbg/Makefile
 	@echo "[INFO] edbg binary not found - building it from source now"
 	CC= CFLAGS= make -C $(RIOTTOOLS)/edbg
 	@echo "[INFO] edbg binary successfully build!"