]> git.sur5r.net Git - bacula/docs/blob - docs/images/Makefile
Add an other traymonitor screenshot
[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 =  \
21       tray-monitor \
22       tray-monitor1 \
23       bat11 \
24       bat12 \
25       bat13 \
26       bat-mediaview \
27       access-is-denied \
28       back \
29       bacula-applications \
30       bacula-logo \
31       bacula-objects \
32       Bacula-tray-monitor \
33       bat_icon \
34       bclogo \
35       bimagemgr1 \
36       bimagemgr2 \
37       bimagemgr3 \
38       bweb-index \
39       bweb-report \
40       Conf-Diagram \
41       confirm \
42       error \
43       file \
44       flow \
45       home \
46       idle \
47       md5 \
48       menu \
49       next \
50       philosophical-gnu-sm \
51       prev \
52       properties-security-advanced-owner \
53       properties-security \
54       running \
55       smartall \
56       thanks \
57       tray-icon \
58       up \
59       view-only \
60       win32-config \
61       win32-finish \
62       win32-installation-type \
63       win32-installing \
64       win32-location \
65       win32-menu \
66       win32-nsis \
67       win32-pkg \
68       win32-service-ok \
69       win32-service \
70       win32-start \
71       win32-welcome \
72       wx-console-restore1 \
73       wx-console-restore2 \
74       xp-control-panel \
75       xp-windows-firewall-advanced \
76       xp-windows-firewall-advanced-settings-after \
77       xp-windows-firewall-advanced-settings-before \
78       xp-windows-firewall-advanced-settings-service-details \
79       xp-windows-firewall
80
81 #         xp-control-panel  
82 #         xp-windows-firewall-advanced \
83 #         xp-windows-firewall-advanced-settings-after \
84 #         xp-windows-firewall-advanced-settings-before \
85 #         xp-windows-firewall-advanced-settings-service-details \
86 #         xp-windows-firewall
87
88
89 # jpg images 
90 JPGIMAGES = xp-control-panel \
91           xp-windows-firewall-advanced \
92           xp-windows-firewall-advanced-settings-after \
93           xp-windows-firewall-advanced-settings-before \
94           xp-windows-firewall-advanced-settings-service-details \
95           xp-windows-firewall  
96
97 # gif images
98 GIFIMAGES = back \
99             bacula-logo \
100             bclogo \
101             error \
102             file \
103             home \
104             idle \
105             md5 \
106             next \
107             running \
108             smartall \
109             thanks  
110
111 TIFIMAGES = \
112           ba-ca-logo 
113
114
115 first_rule: all
116
117 .SUFFIXES:     .texi .html .pdf
118 .PHONY:
119
120 all:    convertpdf converteps
121
122 # Convert png images to pdf (texinfo needs both)
123 convertpdf:       
124         (for i in ${IMAGES} ; do \
125            pngtopnm $${i}.png | pnmtops -scale=0.85 --noturn -nosetpage | epstopdf --filter >$${i}.pdf ; \
126          done)
127
128 # Convert any png images to eps (for LaTeX)
129 converteps:
130         chmod 755 image_convert.pl
131         (for i in ${IMAGES} ; do \
132            pngtopnm $${i}.png | pnmtops -scale=0.65 --noturn -nosetpage >$${i}.eps; \
133            ./image_convert.pl --scalefile=image_scales --defaultscale=0.65 --resolution=140 --maxx=5 --maxy=8 $${i}.png hires/$${i}.eps; \
134          done)
135    
136 # Convert any JPEG images to png
137 convertjpg:       
138         (for i in ${JPGIMAGES} ; do \
139            jpegtopnm $${i}.jpg | pnmtopng >$${i}.png ; \
140          done)
141
142 # Convert any GIF images to png
143 convertgif:
144         (for i in ${GIFIMAGES} ; do \
145            giftopnm $${i}.gif | pnmtopng >$${i}.png ; \
146          done)
147
148 converttif:
149         (for i in ${TIFIMAGES} ; do \
150            convert -geometry 250x $${i}.tif $${i}.png ; \
151          done)
152  
153 clean:
154         @rm -f 1 2 3
155
156 distclean:  clean