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