[tor-commits] [sbws/master] fix: doc: Add target to call plantuml

juga at torproject.org juga at torproject.org
Fri Feb 26 10:18:07 UTC 2021


commit 0981e1069260c6cd1ebadf1139c33ace4c2d1031
Author: juga0 <juga at riseup.net>
Date:   Wed Feb 17 16:58:33 2021 +0000

    fix: doc: Add target to call plantuml
    
    and generate .svg from .puml files.
    Do not add to the html target since the generated svg images are
    not deterministic and will change every time `plantuml` is call.
---
 docs/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/docs/Makefile b/docs/Makefile
index eee14f8..40a6b5d 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -13,6 +13,8 @@ BUILDDIRIMAGES  = $(BUILDDIR)/html/_images
 PYREVERSE     = pyreverse
 PYREVERSE_FLAGS = -o svg -p sbws ../sbws
 UMLSVG := $(PYREVERSE) $(PYREVERSE_FLAGS);mv *.svg $(IMAGEDIRS);mkdir -p $(BUILDDIRIMAGES);cp $(IMAGEDIRS)/*.svg $(BUILDDIRIMAGES)
+PLANTUML := plantuml
+PLANTUML_CMD := $(PLANTUML) -tsvg -o ../$(IMAGEDIRS) $(SOURCEDIR)/*.puml
 
 # Put it first so that "make" without argument is like "make help".
 help:
@@ -24,6 +26,10 @@ umlsvg:
 	@echo "Generating UML SVG"
 	$(UMLSVG)
 
+plantuml:
+	@echo "Generating plantuml .svg files."
+	$(PLANTUML_CMD)
+
 # Catch-all target: route all unknown targets to Sphinx using the new
 # "make mode" option.  $(O) is meant as a shortcut for $(SPHINXOPTS).
 %: Makefile





More information about the tor-commits mailing list