]> git.sur5r.net Git - bacula/docs/blob - docs/images/Makefile
Updates
[bacula/docs] / docs / images / Makefile
1 #
2 #
3 #  Makefile for converting images from png to pdf
4 #
5 #
6 # If you don't like the scaling of an image, change it in the
7 # image_scales file.  This is the file where image_convert.pl
8 # keeps its list of how images should be scaled, and scale
9 # factors in this file will be used preferentially (There was a
10 # bug so it didn't do this until now).  If you change an image
11 # and want it automatically rescaled, delete it's line from the
12 # image_scales file and do 'make converteps'.
13 #
14
15 # png images
16 IMAGES =  bacula-applications \
17           bacula-objects \
18           Bacula-tray-monitor \
19           bimagemgr1 \
20           bimagemgr2 \
21           bimagemgr3 \
22           Conf-Diagram \
23           win32-finish \
24           win32-location \
25           win32-nsis \
26           win32-pkg \
27           win32-service-ok \
28           win32-service \
29           win32-start \
30           win32-welcome \
31           access-is-denied \
32           confirm \
33           flow \
34           menu \
35           philosophical-gnu-sm \
36           properties-security-advanced-owner \
37           properties-security \
38           tray-icon \
39           view-only \
40           back \
41           bacula-logo \
42           bclogo \
43           error \
44           file \
45           home \
46           idle \
47           md5 \
48           next \
49           running \
50           smartall \
51           thanks
52
53 #         xp-control-panel  
54 #         xp-windows-firewall-advanced \
55 #         xp-windows-firewall-advanced-settings-after \
56 #         xp-windows-firewall-advanced-settings-before \
57 #         xp-windows-firewall-advanced-settings-service-details \
58 #         xp-windows-firewall
59
60
61 # jpg images
62 JPGIMAGES = xp-control-panel \
63           xp-windows-firewall-advanced \
64           xp-windows-firewall-advanced-settings-after \
65           xp-windows-firewall-advanced-settings-before \
66           xp-windows-firewall-advanced-settings-service-details \
67           xp-windows-firewall  
68
69 # gif images
70 GIFIMAGES = back \
71             bacula-logo \
72             bclogo \
73             error \
74             file \
75             home \
76             idle \
77             md5 \
78             next \
79             running \
80             smartall \
81             thanks  
82
83
84
85
86 first_rule: all
87
88 .SUFFIXES:     .texi .html .pdf
89 .PHONY:
90
91 all:    convert
92
93 # Convert png images to pdf (texinfo needs both)
94 convertpdf:       
95         (for i in ${IMAGES} ; do \
96            pngtopnm $${i}.png | pnmtops -scale=0.85 --noturn -nosetpage | epstopdf --filter >$${i}.pdf ; \
97          done)
98
99 # Convert any png images to eps (for LaTeX)
100 converteps:
101         (for i in ${IMAGES} ; do \
102            pngtopnm $${i}.png | pnmtops -scale=0.65 --noturn -nosetpage >$${i}.eps; \
103            ./image_convert.pl --scalefile=image_scales --defaultscale=0.65 --resolution=140 --maxx=5 --maxy=8 $${i}.png hires/$${i}.eps; \
104          done)
105    
106 # Convert any JPEG images to png
107 convertjpg:       
108         (for i in ${JPGIMAGES} ; do \
109            jpegtopnm $${i}.jpg | pnmtopng >$${i}.png ; \
110          done)
111
112 # Convert any GIF images to png
113 convertgif:
114         (for i in ${GIFIMAGES} ; do \
115            giftopnm $${i}.gif | pnmtopng >$${i}.png ; \
116          done)
117  
118 clean:
119         @rm -f 1 2 3
120
121 distclean:  clean