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