This repository has been archived by the owner on Mar 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
91 lines (69 loc) · 3.29 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
CONVERT=convert
COPY=cp
MKDIRCONV=mkdir -p conv/
ORIG_EPS = $(wildcard *.eps)
CONV_EPS = $(patsubst %.eps,conv/%.eps,$(ORIG_EPS))
CONV_PNG = $(patsubst %.eps,conv/%.png,$(ORIG_EPS))
ORIG_PNG = $(wildcard *.png)
COPY_PNG = $(patsubst %.png,conv/%.png,$(ORIG_PNG))
# conversion from fig to png does not work as expected,
# so we use the png as base.
#ORIG_FIG = $(wildcard *.fig)
#CONV_FIG_PNG = $(patsubst %.fig,conv/%.png,$(ORIG_FIG))
#CONV_FIG_EPS = $(patsubst %.fig,conv/%.eps,$(ORIG_FIG))
all: $(CONV_PNG) $(COPY_PNG) conv/bareos-full-logo.png conv/autoxflate-functionblocks.png conv/bareos-webui-jobs.png conv/blocksize-decisionchart.png conv/Conf-Diagram.png conv/dbconfig-1-enable.png conv/dbconfig-2-select-database-type.png conv/dbconfig-3-postgresql-password.png conv/different_time.png conv/flow.png conv/passive-client-communication.png conv/univention-configuration-registry-settings.png conv/univention-ucs-overview-administration.png
# bareos-full-logo: png is of better quality than eps, therefore take that as source
conv/bareos-full-logo.eps: bareos-full-logo.png
@$(MKDIRCONV)
$(CONVERT) bareos-full-logo.png conv/bareos-full-logo.eps
conv/bareos-full-logo.png: bareos-full-logo.png
@$(MKDIRCONV)
$(COPY) bareos-full-logo.png conv/
conv/passive-client-communication.eps: passive-client-communication.png
@$(MKDIRCONV)
$(CONVERT) passive-client-communication.png conv/passive-client-communication.eps
conv/passive-client-communication.png: passive-client-communication.png
@$(MKDIRCONV)
$(COPY) passive-client-communication.png conv/
conv/autoxflate-functionblocks.png: autoxflate-functionblocks.png
@$(MKDIRCONV)
$(COPY) autoxflate-functionblocks.png conv/
conv/autoxflate-functionblocks.eps: autoxflate-functionblocks.png
@$(MKDIRCONV)
$(CONVERT) autoxflate-functionblocks.png conv/autoxflate-functionblocks.eps
conv/dbconfig-1-enable.png: dbconfig-1-enable.png
@$(MKDIRCONV)
$(COPY) dbconfig-1-enable.png conv/
conv/dbconfig-1-enable.eps: dbconfig-1-enable.png
@$(MKDIRCONV)
$(CONVERT) dbconfig-1-enable.png conv/dbconfig-1-enable.eps
conv/dbconfig-2-select-database-type.png: dbconfig-2-select-database-type.png
@$(MKDIRCONV)
$(COPY) dbconfig-2-select-database-type.png conv/
conv/dbconfig-2-select-database-type.eps: dbconfig-2-select-database-type.png
@$(MKDIRCONV)
$(CONVERT) dbconfig-2-select-database-type.png conv/dbconfig-2-select-database-type.eps
conv/dbconfig-3-postgresql-password.png: dbconfig-3-postgresql-password.png
@$(MKDIRCONV)
$(COPY) dbconfig-3-postgresql-password.png conv/
conv/dbconfig-3-postgresql-password.eps: dbconfig-3-postgresql-password.png
@$(MKDIRCONV)
$(CONVERT) dbconfig-3-postgresql-password.png conv/dbconfig-3-postgresql-password.eps
conv/duplicate-real.png: duplicate-real.svg
@$(MKDIRCONV)
$(CONVERT) duplicate-real.svg conv/duplicate-real.png
conv/univention-configuration-registry-settings.png: univention-configuration-registry-settings.png
@$(MKDIRCONV)
$(COPY) univention-configuration-registry-settings.png conv/
conv/univention-ucs-overview-administration.png: univention-ucs-overview-administration.png
@$(MKDIRCONV)
$(COPY) univention-ucs-overview-administration.png conv/
conv/%.png: %.png
@$(MKDIRCONV)
#$(CONVERT) $< conv/`basename $< .eps`.png
$(COPY) $< conv/$<
conv/%.eps: %.eps
@$(MKDIRCONV)
$(COPY) $< conv/$<
clean:
rm -f conv/*