taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

Makefile (621B)


      1 # Regenerates the DD 97 (Project Sesame) diagrams from the
      2 # PlantUML sources.  The generated SVGs are committed, so the
      3 # normal documentation build does not need PlantUML; run this
      4 # only after editing a .puml file.
      5 #
      6 # Needs either a `plantuml` binary in $PATH, or Java plus
      7 # PLANTUML_JAR pointing to a plantuml.jar:
      8 #
      9 #   make diagrams
     10 #   make diagrams PLANTUML_JAR=/path/to/plantuml.jar
     11 
     12 PUML = $(wildcard sesame-*.puml)
     13 SVG  = $(PUML:.puml=.svg)
     14 
     15 ifneq ($(PLANTUML_JAR),)
     16 PLANTUML = java -jar $(PLANTUML_JAR)
     17 else
     18 PLANTUML = plantuml
     19 endif
     20 
     21 diagrams: $(SVG)
     22 
     23 %.svg: %.puml
     24 	$(PLANTUML) -tsvg $<
     25 
     26 .PHONY: diagrams