Skip to contentSkip to conversation

documentation/Makefile: add "clean" make target

PATCH New Michael Opdenacker 1 participant 1 message Feb 23, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 documentation/Makefile: add "clean" make target

---
 documentation/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
documentation/Makefile +4 -1
index 30c16943dd..564a906e20 100644
@@ -6,7 +6,7 @@ SOURCEDIR     = .
 BUILDDIR      = _build
 TRANSITIONS   = $(sort $(patsubst $(SOURCEDIR)/transition/%/index.rst,%,$(wildcard $(SOURCEDIR)/transition/*/index.rst)))
 
-.PHONY: Makefile publish transition $(TRANSITIONS)
+.PHONY: Makefile publish transition clean $(TRANSITIONS)
 
 transition: $(TRANSITIONS)
 
@@ -20,3 +20,6 @@ publish: transition
 		mkdir -p $(BUILDDIR)/final/$$ver ;\
 		cp -r $(BUILDDIR)/$$ver/html/* $(BUILDDIR)/final/$$ver/ ;\
 	done
+
+clean:
+	@rm -rf $(BUILDDIR)
Signature · 1 line
2.25.1