forked from stleary/JSON-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (39 loc) · 1.11 KB
/
Makefile
File metadata and controls
49 lines (39 loc) · 1.11 KB
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
# Copyright © 2011 Jason J.A. Stephenson
#
# This file is part of JSON-java. It is distributed under the same
# license as JSON-java. Don't use it to be evil.
DOC_DIR ?= target/apidocs/
SOURCES = CDL.java \
JSONObject.java \
Cookie.java \
JSONStringer.java \
CookieList.java \
JSONString.java \
HTTP.java \
JSONTokener.java \
HTTPTokener.java \
JSONWriter.java \
JSONArray.java \
JSONException.java \
XML.java \
JSONML.java \
XMLTokener.java
ifdef WITH_JUNIT
SOURCES += \
Test.java
endif
.PHONY: documentation compile jar clean init
jar: init compile
jar cf ./target/JSON.jar ./target/classes
compile: $(SOURCES)
javac -d ./target/classes -sourcepath ./target/filtered-sources/org/json/ $^
documentation: $(SOURCES)
javadoc -d $(DOC_DIR) -doctitle JSON-java -windowtitle JSON-java $^
clean:
-rm -rf target/
init:
-mkdir target/
-mkdir target/apidocs/
-mkdir target/classes/
-mkdir -p target/filtered-sources/org/json/
cp $(SOURCES) target/filtered-sources/org/json/