1# 2# Copyright 2014, NICTA 3# 4# This software may be distributed and modified according to the terms of 5# the GNU General Public License version 2. Note that NO WARRANTY is provided. 6# See "LICENSE_GPLv2.txt" for details. 7# 8# @TAG(NICTA_GPL) 9# 10 11SHELL=/bin/bash 12 13# Verbosity settings. 14ifeq (${V},) 15V := 0 16endif 17ifeq (${V},1) 18Q := 19else # V = 0 20Q := @ 21endif 22 23IMGS := \ 24 compilation.svg \ 25 composite-passthrough.svg \ 26 dataport.svg \ 27 echo.svg \ 28 event.svg \ 29 terminal.svg \ 30 31.PHONY: default 32default: $(IMGS:%.svg=%.pdf) 33 34%.pdf: %.svg 35 @echo " [MK] $(notdir $@)" 36 ${Q}which inkscape &>/dev/null || { echo "You need inkscape installed to build these images" >&2 ; exit 1 ; } 37 ${Q}inkscape -D -z --file=$< --export-pdf=$@ 38 39clean: 40 ${Q}rm -rf *.pdf 41