forked from beeware/voc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
89 lines (82 loc) · 3.83 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
ALL_FILES=\
python/org/Python.class \
python/org/python/Object.class \
python/org/python/Callable.class \
python/org/python/Function.class \
python/org/python/InstanceMethod.class \
python/org/python/Iterator.class \
python/org/python/Range.class \
python/org/python/StaticMethod.class \
python/org/python/Constructor.class \
python/org/python/exceptions/ArithmeticError.class \
python/org/python/exceptions/AssertionError.class \
python/org/python/exceptions/AttributeError.class \
python/org/python/exceptions/BaseException.class \
python/org/python/exceptions/BlockingIOError.java \
python/org/python/exceptions/BrokenPipeError.java \
python/org/python/exceptions/BufferError.class \
python/org/python/exceptions/BytesWarning.java \
python/org/python/exceptions/ChildProcessError.java \
python/org/python/exceptions/ConnectionAbortedError.java \
python/org/python/exceptions/ConnectionError.java \
python/org/python/exceptions/ConnectionRefusedError.java \
python/org/python/exceptions/ConnectionResetError.java \
python/org/python/exceptions/DeprecationWarning.java \
python/org/python/exceptions/EOFError.class \
python/org/python/exceptions/Exception.class \
python/org/python/exceptions/FileExistsError.java \
python/org/python/exceptions/FileNotFoundError.java \
python/org/python/exceptions/FloatingPointError.class \
python/org/python/exceptions/FutureWarning.java \
python/org/python/exceptions/GeneratorExit.java \
python/org/python/exceptions/ImportError.class \
python/org/python/exceptions/ImportWarning.java \
python/org/python/exceptions/IndentationError.class \
python/org/python/exceptions/IndexError.class \
python/org/python/exceptions/InterruptedError.java \
python/org/python/exceptions/IsADirectoryError.java \
python/org/python/exceptions/KeyboardInterrupt.java \
python/org/python/exceptions/KeyError.class \
python/org/python/exceptions/LookupError.class \
python/org/python/exceptions/MemoryError.class \
python/org/python/exceptions/NameError.class \
python/org/python/exceptions/NotADirectoryError.java \
python/org/python/exceptions/NotImplementedError.class \
python/org/python/exceptions/OSError.class \
python/org/python/exceptions/OverflowError.class \
python/org/python/exceptions/PendingDeprecationWarning.java \
python/org/python/exceptions/PermissionError.java \
python/org/python/exceptions/ProcessLookupError.java \
python/org/python/exceptions/ReferenceError.class \
python/org/python/exceptions/ResourceWarning.java \
python/org/python/exceptions/RuntimeError.class \
python/org/python/exceptions/RuntimeWarning.java \
python/org/python/exceptions/StandardError.class \
python/org/python/exceptions/StopIteration.class \
python/org/python/exceptions/SyntaxError.class \
python/org/python/exceptions/SyntaxWarning.java \
python/org/python/exceptions/SystemError.class \
python/org/python/exceptions/SystemExit.java \
python/org/python/exceptions/TabError.class \
python/org/python/exceptions/TimeoutError.java \
python/org/python/exceptions/TypeError.class \
python/org/python/exceptions/UnboundLocalError.class \
python/org/python/exceptions/UnboundLocalErrorNameError.java \
python/org/python/exceptions/UnicodeDecodeError.class \
python/org/python/exceptions/UnicodeEncodeError.class \
python/org/python/exceptions/UnicodeError.class \
python/org/python/exceptions/UnicodeTranslateError.class \
python/org/python/exceptions/UnicodeWarning.java \
python/org/python/exceptions/UserWarning.java \
python/org/python/exceptions/ValueError.class \
python/org/python/exceptions/Warning.java \
python/org/python/exceptions/ZeroDivisionError.class
.PHONY: all clean
all: python.jar
clean:
rm -rf python.jar
find python -name "*.class" -exec rm {} \;
python.jar: $(ALL_FILES)
cd python && jar -cf ../$@ $(subst python/org,org,$(ALL_FILES))
%.class: %.java
javac -Xlint:unchecked -classpath python $<