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