fix: add missing SPDX license header
This commit is contained in:
parent
8cad34ecf6
commit
d4b0c6d1a6
1 changed files with 36 additions and 13 deletions
33
mocodo.mk
33
mocodo.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>
|
||||
|
||||
##
|
||||
## MOCODO MODULE
|
||||
##
|
||||
|
@ -5,13 +10,18 @@
|
|||
##
|
||||
## External variables (API)
|
||||
##
|
||||
MOCODO_OPT=--colors brewer-6 --shapes verdana
|
||||
MOCODO_SRC_DIR=
|
||||
MOCODO_DEST_DIR=
|
||||
MOCODO_OPT ?= --colors brewer-6 --shapes verdana
|
||||
MOCODO_SRC_DIR ?=
|
||||
MOCODO_DEST_DIR ?=
|
||||
|
||||
##
|
||||
## Internal variables
|
||||
## Internal variables (lazy recursive evaluation)
|
||||
##
|
||||
|
||||
## Find .mcd and .mld files
|
||||
## Convert .mcd to .mcd.mld, .mcd.svg and .mcd.pdf files
|
||||
## Convert .mld to .mld.svg, and .mld.pdf files
|
||||
|
||||
MOCODO_MCD_FILES = $(shell find $(MOCODO_SRC_DIR) \( -name '*.mcd' ! -name '_*' \))
|
||||
MOCODO_MCD_MLD = $(patsubst $(MOCODO_SRC_DIR)/%.mcd,$(MOCODO_DEST_DIR)/%.mcd.mld,$(MOCODO_MCD_FILES))
|
||||
MOCODO_MCD_SVG = $(patsubst $(MOCODO_SRC_DIR)/%.mcd,$(MOCODO_DEST_DIR)/%.mcd.svg,$(MOCODO_MCD_FILES))
|
||||
|
@ -71,26 +81,39 @@ $(MOCODO_DEST_DIR)/%.mcd.pdf: $(MOCODO_SRC_DIR)/%.mcd.svg
|
|||
# rsvg-convert -f pdf $< > $@
|
||||
rsvg-convert -f ps $< | gs -sDEVICE=pdfwrite -sOutputFile=$@ -f -
|
||||
|
||||
.PHONY: mocodo-mcd-mld
|
||||
mocodo-mcd-mld: $(MOCODO_MCD_MLD)
|
||||
|
||||
.PHONY: mocodo-mcd-svg
|
||||
mocodo-mcd-svg: $(MOCODO_MCD_SVG)
|
||||
|
||||
.PHONY: mocodo-mld-pdf
|
||||
mocodo-mcd-pdf: $(MOCODO_MCD_PDF)
|
||||
|
||||
.PHONY: mocodo-mld-svg
|
||||
mocodo-mld-svg: $(MOCODO_MLD_SVG)
|
||||
|
||||
mocodo-mcd-pdf: $(MOCODO_MCD_PDF)
|
||||
.PHONY: mocodo-mld-pdf
|
||||
mocodo-mld-pdf: $(MOCODO_MLD_PDF)
|
||||
|
||||
.PHONY: mocodo-svg
|
||||
mocodo-svg: mocodo-mcd-svg mocodo-mld-svg
|
||||
|
||||
.PHONY: mocodo-pdf
|
||||
mocodo-pdf: mocodo-mcd-pdf mocodo-mld-pdf
|
||||
|
||||
.PHONY: mocodo-clean-mld
|
||||
mocodo-clean-mld:
|
||||
rm -f $(MOCODO_MCD_MLD)
|
||||
|
||||
.PHONY: mocodo-clean-svg
|
||||
mocodo-clean-svg:
|
||||
rm -f $(MOCODO_MCD_SVG) $(MOCODO_MLD_SVG)
|
||||
|
||||
.PHONY: mocodo-clean-pdf
|
||||
mocodo-clean-pdf:
|
||||
rm -f $(MOCODO_MCD_PDF) $(MOCODO_MLD_PDF)
|
||||
|
||||
.PHONY: mocodo-clean
|
||||
mocodo-clean: mocodo-clean-mld mocodo-clean-svg mocodo-clean-pdf
|
||||
|
||||
|
|
Loading…
Reference in a new issue