From: nhmall Date: Fri, 4 Feb 2022 22:11:09 +0000 (-0500) Subject: provide a Makefile target to clean the Lua submodule X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6af710bc97a3384798f715b29ebe6081a59f0c20;p=nethack provide a Makefile target to clean the Lua submodule --- diff --git a/sys/unix/Makefile.top b/sys/unix/Makefile.top index 53649f62a..d2d00b6fb 100644 --- a/sys/unix/Makefile.top +++ b/sys/unix/Makefile.top @@ -371,3 +371,7 @@ spotless-keep-lib: clean-keep-lib ( cd util ; $(MAKE) spotless ) ( cd dat ; $(MAKE) spotless ) ( cd doc ; $(MAKE) spotless ) +spotless-clean-submodule: + @( if test -f submodules/lua/lua.h ; then \ + git submodule deinit submodules/lua ; fi ) +