Skip to content

Commit a2d0fe7

Browse files
committed
Reinstated Makefile so we don't force people to use maven.
1 parent 647f80a commit a2d0fe7

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

Makefile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
JAVA_BUILD_OPTS = -g -source 1.8 -target 1.8 -cp .:$(CP)
2+
CP = `find lib -name "*.jar" -printf %p:`
3+
CP_SPACE = `ls lib/*.jar`
4+
5+
.PHONY: ipfs
6+
ipfs:
7+
rm -rf build
8+
mkdir -p build
9+
echo "Name: IPFS Java HTTP Client library" > def.manifest
10+
javac $(JAVA_BUILD_OPTS) -d build `find src/main/java -name \*.java`
11+
jar -cfm IPFS.jar def.manifest \
12+
-C build org
13+
rm -f def.manifest
14+
15+
.PHONY: tests
16+
tests:
17+
rm -rf build
18+
mkdir -p build
19+
echo "Name: IPFS Java HTTP Client library Tests" > def.manifest
20+
echo "Class-Path: " $(CP_SPACE)>> def.manifest
21+
javac $(JAVA_BUILD_OPTS) -d build -cp $(CP) `find src -name \*.java`
22+
jar -cfm Tests.jar def.manifest \
23+
-C build org
24+
rm -f def.manifest
25+
java -cp $(CP):Tests.jar org.junit.runner.JUnitCore org.ipfs.api.Test

lib/hamcrest-core-1.3.jar

44 KB
Binary file not shown.

lib/junit-4.12.jar

308 KB
Binary file not shown.

0 commit comments

Comments
 (0)