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