-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
98 lines (88 loc) · 2.92 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
92
93
94
95
96
97
98
# NatLink repository location:
NATLINK = /home/mdl/voice/NatLink/trunk
##
## Building a distribution
##
prepare:
rm -rf build
mkdir -p build/Vocola
#
# top level:
(cd build/Vocola; mkdir commands exec extensions samples to_core to_MacroSystem)
(cd build/Vocola; mkdir MacroSystem core)
cp src/install.bat build/Vocola/
cp src/install-user-dir.bat build/Vocola/
cp src/README.html build/Vocola/
cp src/Release*.txt build/Vocola/
#
# commands:
#
# exec:
cp src/exec/*.exe build/Vocola/exec/
cp src/exec/*.pl build/Vocola/exec/
cp src/exec/*.py build/Vocola/exec/
mkdir build/Vocola/exec/vcl2py
cp src/exec/vcl2py/*.py build/Vocola/exec/vcl2py/
#
# extensions:
cp src/extensions/README.txt build/Vocola/extensions/
cp src/extensions/*.py build/Vocola/extensions/
#
# samples:
cp src/samples/*.vc[hl] build/Vocola/samples/
#
# to_core:
cp src/to_core/*.py build/Vocola/to_core/
#
# to_MacroSystem:
cp src/to_MacroSystem/*.py build/Vocola/to_MacroSystem/
#
# core:
cp src/to_core/*.py build/Vocola/core/
#
# MacroSystem:
cp src/to_MacroSystem/*.py build/Vocola/MacroSystem/
mv build/Vocola/MacroSystem/_vocola_main.py build/Vocola/MacroSystem/__init__.py
#
(cd build; zip -r Vocola Vocola) > /dev/null
#
#
cp -r build/Vocola build/Vocola_for_NatLink
rm build/Vocola_for_NatLink/install.bat
rm build/Vocola_for_NatLink/install-user-dir.bat
rm -rf build/Vocola_for_NatLink/to_MacroSystem
rm -rf build/Vocola_for_NatLink/to_core
rm -rf build/Vocola_for_NatLink/core
rm -rf build/Vocola_for_NatLink/MacroSystem
clean::
rm -rf build
rm -f src/exec/vcl2py/*.pyc
##
## Installing to the NatLink installer repository:
##
short_compare: prepare
@echo "=========="
@-diff --brief -b build/Vocola/to_MacroSystem/_vocola_main.py \
${NATLINK}/MacroSystem/
@-diff --brief -b build/Vocola/to_core/VocolaUtils.py \
${NATLINK}/MacroSystem/core/
@-diff --brief -r -x .svn -b build/Vocola_for_NatLink ${NATLINK}/Vocola
@grep "including Vocola" ${NATLINK}/natlinkInstaller/setupnatlinkwithinno.py
compare: prepare
@echo "=========="
-diff -r -x .svn -b build/Vocola_for_NatLink ${NATLINK}/Vocola
@echo "=========="
-diff -b build/Vocola/to_core/VocolaUtils.py \
${NATLINK}/MacroSystem/core/
@echo "=========="
-diff -b build/Vocola/to_MacroSystem/_vocola_main.py \
${NATLINK}/MacroSystem/_vocola_main.py
grep "including Vocola" ${NATLINK}/natlinkInstaller/setupnatlinkwithinno.py
install: prepare
(cd build/Vocola_for_NatLink; find . -type f -exec cp {} ${NATLINK}/Vocola/{} \;)
cp build/Vocola/to_MacroSystem/_vocola_main.py \
${NATLINK}/MacroSystem/
cp build/Vocola/to_core/VocolaUtils.py \
${NATLINK}/MacroSystem/core/
@echo
@echo "***** Do not forget to update version number in natlinkInstaller/setupnatlinkwithinno.py"