diff --git a/esp8266/Makefile b/esp8266/Makefile
index d86fec18087a65ab21f4673228def324a10c9836..65a513afd624140d29feef68e2cff5d59d953d1f 100644
--- a/esp8266/Makefile
+++ b/esp8266/Makefile
@@ -12,7 +12,6 @@ include ../py/py.mk
 
 MPY_CROSS = ../mpy-cross/mpy-cross
 MPY_TOOL = ../tools/mpy-tool.py
-MAKE_FROZEN = ../tools/make-frozen.py
 
 FROZEN_DIR = scripts
 FROZEN_MPY_DIR = modules
diff --git a/stmhal/Makefile b/stmhal/Makefile
index 7be0f28fe178571aed8274b733514c5cc9ff9b27..06be7acc896294a89d65b8b044b429373b51f4c9 100644
--- a/stmhal/Makefile
+++ b/stmhal/Makefile
@@ -276,7 +276,6 @@ all: $(BUILD)/firmware.dfu $(BUILD)/firmware.hex
 ifneq ($(FROZEN_DIR),)
 CFLAGS += -DMICROPY_MODULE_FROZEN_STR
 OBJ += $(BUILD)/frozen-files.o
-MAKE_FROZEN = ../tools/make-frozen.py
 
 $(BUILD)/frozen-files.o: $(BUILD)/frozen-files.c
 	$(call compile_c)
diff --git a/unix/Makefile b/unix/Makefile
index 4a313b3a80655cbcfda06ff4f1e696b4dc663cea..53ff4cb487e8eebd07ad4743c31ee95b99550614 100644
--- a/unix/Makefile
+++ b/unix/Makefile
@@ -273,7 +273,7 @@ coverage_test: coverage
 	gcov -o build-coverage/extmod ../extmod/*.c
 
 $(BUILD)/_frozen_upip.c: $(BUILD)/frozen_upip/upip.py
-	../tools/make-frozen.py $(dir $^) > $@
+	$(MAKE_FROZEN) $(dir $^) > $@
 
 # Select latest upip version available
 UPIP_TARBALL := $(shell ls -1 -v ../tools/micropython-upip-*.tar.gz | tail -n1)