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