1#
2# Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
3#
4# SPDX-License-Identifier: GPL-2.0-only
5#
6
7SHELL=/bin/bash
8
9# Verbosity settings.
10ifeq (${V},)
11V := 0
12endif
13ifeq (${V},1)
14Q :=
15else # V = 0
16Q := @
17endif
18
19IMGS := \
20    compilation.svg \
21    composite-passthrough.svg \
22    dataport.svg \
23    echo.svg \
24    event.svg \
25    terminal.svg \
26
27.PHONY: default
28default: $(IMGS:%.svg=%.pdf)
29
30%.pdf: %.svg
31	@echo " [MK] $(notdir $@)"
32	${Q}which inkscape &>/dev/null || { echo "You need inkscape installed to build these images" >&2 ; exit 1 ; }
33	${Q}inkscape -D -z --file=$< --export-pdf=$@
34
35clean:
36	${Q}rm -rf *.pdf
37