aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/internal_doc/figures/Makefile
blob: 111cb393fb7ff28d0cd02301acf87908490cd896 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# In order to update the figures you have to have both dia
# and imagemagick installed.

DIAGRAMS=$(wildcard *.dia)
EPS_DIAGRAMS=$(patsubst %.dia,%.eps,$(DIAGRAMS))
PNG_DIAGRAMS=$(patsubst %.dia,%.png,$(DIAGRAMS))

diagrams: $(EPS_DIAGRAMS)

png: $(PNG_DIAGRAMS)

update_png: png
	git add $(PNG_DIAGRAMS)
	git commit -m "Update internal docs figures"

%.eps: %.dia
	dia --export=$@ $<

%.png: %.eps
	convert $< -resize 65% $@