]> git.sur5r.net Git - bacula/docs/blob - docs/images/Makefile
ebl add log_stdout method
[bacula/docs] / docs / images / Makefile
1 #
2 #
3 #  All the base Bacula images are .png.  They can start out
4 #   as jpeg, gif, ... but we convert them to .png then
5 #   operate on them from there.  For example, we need them
6 #   in eps and pdf format for some of the output.
7 #
8 #  Makefile for converting images from png to pdf
9 #
10 # If you don't like the scaling of an image, change it in the
11 # image_scales file.  This is the file where image_convert.pl
12 # keeps its list of how images should be scaled, and scale
13 # factors in this file will be used preferentially (There was a
14 # bug so it didn't do this until now).  If you change an image
15 # and want it automatically rescaled, delete it's line from the
16 # image_scales file and do 'make converteps'.
17 #
18
19 # Base png images
20 IMAGES =  bacula-applications \
21           bacula-objects \
22           Bacula-tray-monitor \
23           bimagemgr1 \
24           bimagemgr2 \
25           bimagemgr3 \
26           Conf-Diagram \
27           win32-config \
28           win32-finish \
29           win32-installing \
30           win32-location \
31           win32-nsis \
32           win32-pkg \
33           win32-service-ok \
34           win32-service \
35           win32-start \
36           win32-welcome \
37           access-is-denied \
38           confirm \
39           flow \
40           menu \
41           philosophical-gnu-sm \
42           properties-security-advanced-owner \
43           properties-security \
44           tray-icon \
45           view-only \
46           back \
47           bacula-logo \
48           bclogo \
49           error \
50           file \
51           home \
52           idle \
53           md5 \
54           next \
55           running \
56           smartall \
57           thanks
58
59 #         xp-control-panel  
60 #         xp-windows-firewall-advanced \
61 #         xp-windows-firewall-advanced-settings-after \
62 #         xp-windows-firewall-advanced-settings-before \
63 #         xp-windows-firewall-advanced-settings-service-details \
64 #         xp-windows-firewall
65
66
67 # jpg images 
68 JPGIMAGES = xp-control-panel \
69           xp-windows-firewall-advanced \
70           xp-windows-firewall-advanced-settings-after \
71           xp-windows-firewall-advanced-settings-before \
72           xp-windows-firewall-advanced-settings-service-details \
73           xp-windows-firewall  
74
75 # gif images
76 GIFIMAGES = back \
77             bacula-logo \
78             bclogo \
79             error \
80             file \
81             home \
82             idle \
83             md5 \
84             next \
85             running \
86             smartall \
87             thanks  
88
89
90
91
92 first_rule: all
93
94 .SUFFIXES:     .texi .html .pdf
95 .PHONY:
96
97 all:    convert
98
99 # Convert png images to pdf (texinfo needs both)
100 convertpdf:       
101         (for i in ${IMAGES} ; do \
102            pngtopnm $${i}.png | pnmtops -scale=0.85 --noturn -nosetpage | epstopdf --filter >$${i}.pdf ; \
103          done)
104
105 # Convert any png images to eps (for LaTeX)
106 converteps:
107         chmod 755 image_convert.pl
108         (for i in ${IMAGES} ; do \
109            pngtopnm $${i}.png | pnmtops -scale=0.65 --noturn -nosetpage >$${i}.eps; \
110            ./image_convert.pl --scalefile=image_scales --defaultscale=0.65 --resolution=140 --maxx=5 --maxy=8 $${i}.png hires/$${i}.eps; \
111          done)
112    
113 # Convert any JPEG images to png
114 convertjpg:       
115         (for i in ${JPGIMAGES} ; do \
116            jpegtopnm $${i}.jpg | pnmtopng >$${i}.png ; \
117          done)
118
119 # Convert any GIF images to png
120 convertgif:
121         (for i in ${GIFIMAGES} ; do \
122            giftopnm $${i}.gif | pnmtopng >$${i}.png ; \
123          done)
124  
125 clean:
126         @rm -f 1 2 3
127
128 distclean:  clean