-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
87 lines (77 loc) · 2.11 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
################################################################
################################################################
# Makefile for beamer #
################################################################
################################################################
TMPDIR = /tmp/beamer
BUILDDIR = $(TMPDIR)/beamer
ROOTFILES = \
AUTHORS \
ChangeLog \
FILES \
INSTALL \
README \
TODO
STRUCTURE = \
base \
base/art \
base/emulation \
base/emulation/examples \
base/multimedia \
base/themes/color \
base/themes/font \
base/themes/inner \
base/themes/outer \
base/themes/theme \
base/themes/theme/compatibility \
base/translator \
doc \
doc/licenses \
examples/a-conference-talk \
examples/a-lecture \
solutions/conference-talks \
solutions/generic-talks \
solutions/short-talks
TRANSLATOR = \
basic \
bibliography \
environment \
months \
numbers \
theorem
all: ctan
clean:
rm -rf $(TMPDIR)
pushd ./doc/ ;\
make clean ; \
popd
pushd ./examples/ ;\
make clean ; \
popd
ctan:
mkdir -p $(BUILDDIR)/
for I in $(ROOTFILES) ; do \
cp ./$$I $(BUILDDIR)/ ; \
done
for I in $(STRUCTURE) ; do \
mkdir -p $(BUILDDIR)/$$I ; \
cp ./$$I/*.* $(BUILDDIR)/$$I/ ; \
done
for I in $(TRANSLATOR) ; do \
mkdir -p $(BUILDDIR)/base/translator/dicts/translator-$$I-dictionary ; \
cp ./base/translator/dicts/translator-$$I-dictionary/*.* $(BUILDDIR)/base/translator/dicts/translator-$$I-dictionary/ ; \
done
mkdir -p $(BUILDDIR)/doc/licenses
cp ./doc/licenses/LICENSE $(BUILDDIR)/doc/licenses/
cp ./doc/Makefile $(BUILDDIR)/doc/
pushd $(BUILDDIR)/doc ; \
make all ; \
popd
cp ./examples/Makefile $(BUILDDIR)/examples/
pushd $(BUILDDIR)/examples ; \
make all ; \
popd
pushd $(TMPDIR) ; \
zip -ll -q -r -X beamer.zip . ; \
popd
cp $(TMPDIR)/beamer.zip .