fix: add missing SPDX license header
This commit is contained in:
parent
d4b0c6d1a6
commit
bb76625bdf
1 changed files with 10 additions and 6 deletions
16
plantuml.mk
16
plantuml.mk
|
@ -1,3 +1,8 @@
|
||||||
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||||||
|
#
|
||||||
|
# SPDX-FileCopyrightText: 2023 Glenn Y. Rolland <glenux@glenux.net>
|
||||||
|
# Copyright © 2023 Glenn Y. Rolland <glenux@glenux.net>
|
||||||
|
|
||||||
##
|
##
|
||||||
## PLANTUML MODULE
|
## PLANTUML MODULE
|
||||||
##
|
##
|
||||||
|
@ -13,13 +18,12 @@ PLANTUML_DEST_DIR ?=
|
||||||
## Internal variables (lazy recursive evaluation)
|
## Internal variables (lazy recursive evaluation)
|
||||||
##
|
##
|
||||||
|
|
||||||
## Find .uml graphs
|
## Find .uml files
|
||||||
PLANTUML_UML = $(shell find $(PLANTUML_SRC_DIR) \( -name '*.uml' ! -name '_*' \))
|
PLANTUML_UML = $(shell find $(PLANTUML_SRC_DIR) \( -name '*.uml' ! -name '_*' \))
|
||||||
PLANTUML_UML_PNG = $(patsubst $(PLANTUML_SRC_DIR)/%.uml,$(PLANTUML_DEST_DIR)/%.uml.png,$(PLANTUML_UML))
|
PLANTUML_UML_PNG = $(patsubst $(PLANTUML_SRC_DIR)/%.uml,$(PLANTUML_DEST_DIR)/%.uml.png,$(PLANTUML_UML))
|
||||||
PLANTUML_UML_SVG = $(patsubst $(PLANTUML_SRC_DIR)/%.uml,$(PLANTUML_DEST_DIR)/%.uml.svg,$(PLANTUML_UML))
|
PLANTUML_UML_SVG = $(patsubst $(PLANTUML_SRC_DIR)/%.uml,$(PLANTUML_DEST_DIR)/%.uml.svg,$(PLANTUML_UML))
|
||||||
PLANTUML_UML_PDF = $(patsubst $(PLANTUML_SRC_DIR)/%.uml,$(PLANTUML_DEST_DIR)/%.uml.pdf,$(PLANTUML_UML))
|
PLANTUML_UML_PDF = $(patsubst $(PLANTUML_SRC_DIR)/%.uml,$(PLANTUML_DEST_DIR)/%.uml.pdf,$(PLANTUML_UML))
|
||||||
|
|
||||||
|
|
||||||
##
|
##
|
||||||
## Rules
|
## Rules
|
||||||
##
|
##
|
||||||
|
@ -34,8 +38,10 @@ $(PLANTUML_DEST_DIR)/%.uml.svg: $(PLANTUML_SRC_DIR)/%.uml | $(PLANTUML_DEST_DIR)
|
||||||
podman run -i plantuml/plantuml plantuml -pipe -tsvg < $< > $@
|
podman run -i plantuml/plantuml plantuml -pipe -tsvg < $< > $@
|
||||||
|
|
||||||
$(PLANTUML_DEST_DIR)/%.uml.pdf: $(PLANTUML_DEST_DIR)/%.uml.svg | $(PLANTUML_DEST_DIR)
|
$(PLANTUML_DEST_DIR)/%.uml.pdf: $(PLANTUML_DEST_DIR)/%.uml.svg | $(PLANTUML_DEST_DIR)
|
||||||
#podman run -i plantuml/plantuml plantuml -pipe -tpdf < $< > $@
|
# podman run -i plantuml/plantuml plantuml -pipe -tpdf < $< > $@
|
||||||
rsvg-convert -f pdf -o $@ $<
|
# rsvg-convert -f pdf -o $@ $<
|
||||||
|
rsvg-convert -f ps $< | gs -sDEVICE=pdfwrite -sOutputFile=$@ -f -
|
||||||
|
|
||||||
|
|
||||||
.PHONY: plantuml-uml-svg
|
.PHONY: plantuml-uml-svg
|
||||||
plantuml-uml-svg: $(PLANTUML_UML_SVG)
|
plantuml-uml-svg: $(PLANTUML_UML_SVG)
|
||||||
|
@ -79,5 +85,3 @@ plantuml-info:
|
||||||
@echo "PLANTUML_UML_PDF: $(PLANTUML_UML_PDF)"
|
@echo "PLANTUML_UML_PDF: $(PLANTUML_UML_PDF)"
|
||||||
@echo "PLANTUML_UML_SVG: $(PLANTUML_UML_SVG)"
|
@echo "PLANTUML_UML_SVG: $(PLANTUML_UML_SVG)"
|
||||||
|
|
||||||
.SUFFIXES:
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue