]> granicus.if.org Git - nethack/commitdiff
provide a Makefile target to clean the Lua submodule
authornhmall <nhmall@nethack.org>
Fri, 4 Feb 2022 22:11:09 +0000 (17:11 -0500)
committernhmall <nhmall@nethack.org>
Fri, 4 Feb 2022 22:11:09 +0000 (17:11 -0500)
sys/unix/Makefile.top

index 53649f62a7dc090257bad0764ba952bb58979948..d2d00b6fbd60ee67cf75034ac3e3194907e5c763 100644 (file)
@@ -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 )
+