gravatar
ladanyi@tmit.bme.hu
ladanyi@tmit.bme.hu
Convert the EPS files to PNG when generating the documentation
0 4 0
default
4 files changed with 36 insertions and 2 deletions:
↑ Collapse diff ↑
Ignore white space 6 line context
... ...
@@ -9,2 +9,3 @@
9 9
*.tar.*
10
*.bak
10 11
Makefile.in
... ...
@@ -27,2 +28,3 @@
27 28
demo/*.eps
29
doc/images/*.png
28 30

	
Show white space 6 line context
... ...
@@ -29,2 +29,3 @@
29 29
AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
30
AC_CHECK_PROG([gs_found],[gs],[yes],[no])
30 31

	
Ignore white space 6 line context
... ...
@@ -103,3 +103,4 @@
103 103
EXAMPLE_RECURSIVE      = NO
104
IMAGE_PATH             = @abs_top_srcdir@/doc/images
104
IMAGE_PATH             = @abs_top_srcdir@/doc/images \
105
		       	 @abs_top_builddir@/doc/gen-images
105 106
INPUT_FILTER           = 
Ignore white space 6 line context
... ...
@@ -11,2 +11,17 @@
11 11

	
12
DOC_EPS_IMAGES18 = \
13
	nodeshape_0.eps \
14
	nodeshape_1.eps \
15
	nodeshape_2.eps \
16
	nodeshape_3.eps \
17
	nodeshape_4.eps
18

	
19
DOC_EPS_IMAGES = \
20
	$(DOC_EPS_IMAGES18)
21

	
22
DOC_PNG_IMAGES = \
23
	$(DOC_EPS_IMAGES:%.eps=doc/gen-images/%.png)
24

	
25
EXTRA_DIST += $(DOC_EPS_IMAGES:%=doc/images/%)
26

	
12 27
doc/html:
... ...
@@ -14,3 +29,16 @@
14 29

	
15
html-local:
30
GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
31

	
32
$(DOC_EPS_IMAGES18:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
33
	-mkdir doc/gen-images
34
	if test ${gs_found} = yes; then \
35
	  $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<; \
36
	else \
37
	  echo; \
38
	  echo "Ghostscript not found."; \
39
	  echo; \
40
	  exit 1; \
41
	fi
42

	
43
html-local: $(DOC_PNG_IMAGES)
16 44
	if test ${doxygen_found} = yes; then \
... ...
@@ -29,2 +57,4 @@
29 57
	-rm -f doc/doxygen.log
58
	-rm -f $(DOC_PNG_IMAGES)
59
	-rm -rf doc/gen-images
30 60

	
0 comments (0 inline)