Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Restore missing Makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Sep 11, 2013
1 parent 069f68a commit 1350c75
Showing 1 changed file with 157 additions and 0 deletions.
157 changes: 157 additions & 0 deletions manuals/images/Makefile
@@ -0,0 +1,157 @@
#
#
# All the base Bacula images are .png. They can start out
# as jpeg, gif, ... but we convert them to .png then
# operate on them from there. For example, we need them
# in eps and pdf format for some of the output.
#
# Makefile for converting images from png to pdf
#
# If you don't like the scaling of an image, change it in the
# image_scales file. This is the file where image_convert.pl
# keeps its list of how images should be scaled, and scale
# factors in this file will be used preferentially (There was a
# bug so it didn't do this until now). If you change an image
# and want it automatically rescaled, delete it's line from the
# image_scales file and do 'make converteps'.
#

# Base png images
IMAGES = \
bat-brestore \
tray-monitor \
tray-monitor1 \
bat11 \
bat12 \
bat13 \
bat-mediaview \
access-is-denied \
back \
bacula-applications \
bacula-logo \
bacula-objects \
Bacula-tray-monitor \
bat_icon \
bclogo \
bimagemgr1 \
bimagemgr2 \
bimagemgr3 \
bweb-index \
bweb-report \
Conf-Diagram \
confirm \
error \
file \
flow \
home \
idle \
md5 \
menu \
next \
philosophical-gnu-sm \
prev \
properties-security-advanced-owner \
properties-security \
running \
smartall \
thanks \
tray-icon \
up \
view-only \
win32-config \
win32-finish \
win32-installation-type \
win32-installing \
win32-location \
win32-menu \
win32-nsis \
win32-pkg \
win32-service-ok \
win32-service \
win32-start \
win32-welcome \
wx-console-restore1 \
wx-console-restore2 \
xp-control-panel \
xp-windows-firewall-advanced \
xp-windows-firewall-advanced-settings-after \
xp-windows-firewall-advanced-settings-before \
xp-windows-firewall-advanced-settings-service-details \
xp-windows-firewall

# xp-control-panel
# xp-windows-firewall-advanced \
# xp-windows-firewall-advanced-settings-after \
# xp-windows-firewall-advanced-settings-before \
# xp-windows-firewall-advanced-settings-service-details \
# xp-windows-firewall


# jpg images
JPGIMAGES = xp-control-panel \
xp-windows-firewall-advanced \
xp-windows-firewall-advanced-settings-after \
xp-windows-firewall-advanced-settings-before \
xp-windows-firewall-advanced-settings-service-details \
xp-windows-firewall

# gif images
GIFIMAGES = back \
bacula-logo \
bclogo \
error \
file \
home \
idle \
md5 \
next \
running \
smartall \
thanks

TIFIMAGES = \
ba-ca-logo


first_rule: all

.SUFFIXES: .texi .html .pdf
.PHONY:

all: convertpdf converteps

# Convert png images to pdf (texinfo needs both)
convertpdf:
(for i in ${IMAGES} ; do \
pngtopnm $${i}.png | pnmtops -scale=0.85 --noturn -nosetpage | epstopdf --filter >$${i}.pdf ; \
done)

# Convert any png images to eps (for LaTeX)
converteps:
chmod 755 image_convert.pl
(for i in ${IMAGES} ; do \
pngtopnm $${i}.png | pnmtops -scale=0.65 --noturn -nosetpage >$${i}.eps; \
./image_convert.pl --scalefile=image_scales --defaultscale=0.65 --resolution=140 --maxx=5 --maxy=8 $${i}.png hires/$${i}.eps; \
done)

# Convert any JPEG images to png
convertjpg:
(for i in ${JPGIMAGES} ; do \
jpegtopnm $${i}.jpg | pnmtopng >$${i}.png ; \
done)

# Convert any GIF images to png
convertgif:
(for i in ${GIFIMAGES} ; do \
giftopnm $${i}.gif | pnmtopng >$${i}.png ; \
done)

converttif:
(for i in ${TIFIMAGES} ; do \
convert -geometry 250x $${i}.tif $${i}.png ; \
done)

clean:
@rm -f 1 2 3

distclean: clean

0 comments on commit 1350c75

Please sign in to comment.