aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/doc/src/Makefile
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-06-18 15:26:23 +0200
committerSiri Hansen <[email protected]>2018-07-13 12:20:25 +0200
commit308e7677170d56c4270d82af1a37375038da5d72 (patch)
tree93c63bb144cd473ddba03ede05f11fb2ee064ab5 /lib/kernel/doc/src/Makefile
parent0cd4f90dc8897f0820c9cdac0ed4db25a54aa1eb (diff)
downloadotp-308e7677170d56c4270d82af1a37375038da5d72.tar.gz
otp-308e7677170d56c4270d82af1a37375038da5d72.tar.bz2
otp-308e7677170d56c4270d82af1a37375038da5d72.zip
[logger] Generate .png file from .dia
Diffstat (limited to 'lib/kernel/doc/src/Makefile')
-rw-r--r--lib/kernel/doc/src/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/kernel/doc/src/Makefile b/lib/kernel/doc/src/Makefile
index f34eee71ba..fceba14515 100644
--- a/lib/kernel/doc/src/Makefile
+++ b/lib/kernel/doc/src/Makefile
@@ -84,6 +84,7 @@ XML_CHAPTER_FILES = \
BOOK_FILES = book.xml
+# The .png file is generated from a .dia file with target 'update_png'
IMAGE_FILES = \
logger_arch.png
@@ -112,6 +113,17 @@ SPECS_FILES = $(XML_REF3_FILES:%.xml=$(SPECDIR)/specs_%.xml)
TOP_SPECS_FILE = specs.xml
# ----------------------------------------------------
+# FIGURES
+# ----------------------------------------------------
+# In order to update the figures you have to have both dia
+# and imagemagick installed.
+# The generated .png file must be committed.
+
+update_png:
+ dia --export=logger_arch.eps logger_arch.dia
+ convert logger_arch.eps -resize 65% logger_arch.png
+
+# ----------------------------------------------------
# FLAGS
# ----------------------------------------------------
XML_FLAGS +=
@@ -147,7 +159,7 @@ clean clean_docs:
rm -f $(MAN6DIR)/*
rm -f $(TOP_PDF_FILE) $(TOP_PDF_FILE:%.pdf=%.fo)
rm -f $(SPECDIR)/*
- rm -f errs core *~
+ rm -f errs core *~ *.eps
$(SPECDIR)/specs_erl_prim_loader_stub.xml:
$(gen_verbose)escript $(SPECS_EXTRACTOR) $(SPECS_FLAGS) \