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