-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
93 lines (83 loc) · 2.37 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
# Makefile for JBase Database Engine
# JAR file to compile
JAR=JBase.jar
# Entry point for the runnable Jar file
MANIFEST=manifest.txt
# Classes to include
CLASSES=\
jbase/JBaseAction.class \
\
jbase/database/Database.class \
jbase/database/DatabaseAction.class \
jbase/database/User.class \
\
jbase/field/Field.class \
jbase/field/FieldAction.class \
jbase/field/FieldType.class \
jbase/field/JBaseField.class \
jbase/field/ParentField.class \
jbase/field/ChildField.class \
jbase/field/PointableField.class \
jbase/field/PointerField.class \
jbase/field/KeyField.class \
jbase/field/ItemField.class \
jbase/field/ForeignKeyField.class \
\
jbase/acl/ACL.class \
jbase/acl/PermissionType.class \
\
jbase/exception/JBaseException.class \
jbase/exception/JBaseIOException.class \
jbase/exception/JBaseBadDatabase.class \
jbase/exception/JBaseDatabaseNotFound.class \
jbase/exception/JBaseInvalidLogin.class \
\
jbase/exception/JBaseUserException.class \
jbase/exception/JBaseUserNotFound.class \
jbase/exception/JBaseDuplicateUser.class \
\
jbase/exception/JBaseDatabaseException.class \
jbase/exception/JBaseDuplicateDatabase.class \
jbase/exception/JBaseFieldNotFound.class \
jbase/exception/JBaseDuplicateField.class \
jbase/exception/JBaseWrongDatabase.class \
\
jbase/exception/JBaseFieldException.class \
jbase/exception/JBaseBadFieldAction.class \
jbase/exception/JBaseDuplicateData.class \
jbase/exception/JBaseDataNotFound.class \
jbase/exception/JBaseBadRow.class \
jbase/exception/JBaseEndOfList.class \
jbase/exception/JBaseBadResize.class \
jbase/exception/JBaseOutOfMemory.class \
\
jbase/exception/JBasePermissionException.class \
jbase/exception/JBaseDatabaseActionDenied.class \
jbase/exception/JBaseACLEditDenied.class \
jbase/exception/JBaseFieldActionDenied.class \
\
jbase/ui/JBaseDialog.class \
jbase/ui/MainDialog.class \
jbase/ui/DatabaseDialog.class \
jbase/ui/SelectKeyDialog.class \
jbase/ui/KeyDialog.class \
jbase/ui/UserDialog.class \
jbase/ui/ACLDialog.class
SOURCES=$(CLASSES:%.class=%.java)
all: $(JAR)
$(JAR): $(CLASSES) $(MANIFEST)
jar cvfm $@ $(MANIFEST) $(CLASSES)
%.class: %.java
javac $<
# Make the JavaDocs
.PHONY: docs
docs:
javadoc -noqualifier all -d ./docs -sourcepath . -subpackages jbase
# Run the main program
.PHONY: run
run: $(JAR)
java -jar $(JAR)
.PHONY: clean
clean:
rm -f $(CLASSES) $(JAR)
rm -Rf docs