diff --git a/modules/modules.mk b/modules/modules.mk
index 26b8eb977d6d4331bc06337cde3c3ff7ce5925d7..cb435fc14c79623e19e26f508d026dad02c01253 100644
--- a/modules/modules.mk
+++ b/modules/modules.mk
@@ -25,10 +25,11 @@ endef
 # Lua target definition
 define lua_target
 $(1) := $(2)/$(1).lua
+$(1)-clean:
 $(1)-install: $(2)/$(1).lua
 	$(INSTALL) -d $(PREFIX)/$(MODULEDIR)
 	$(INSTALL) $$^ $(PREFIX)/$(MODULEDIR)
-.PHONY: $(1) $(1)-install
+.PHONY: $(1) $(1)-install $(1)-clean
 endef
 
 # Make Go module