Skip to content

Commit

Permalink
Reinstated Makefile so we don't force people to use maven.
Browse files Browse the repository at this point in the history
  • Loading branch information
ianopolous committed Oct 29, 2015
1 parent 647f80a commit a2d0fe7
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
JAVA_BUILD_OPTS = -g -source 1.8 -target 1.8 -cp .:$(CP)
CP = `find lib -name "*.jar" -printf %p:`
CP_SPACE = `ls lib/*.jar`

.PHONY: ipfs
ipfs:
rm -rf build
mkdir -p build
echo "Name: IPFS Java HTTP Client library" > def.manifest
javac $(JAVA_BUILD_OPTS) -d build `find src/main/java -name \*.java`
jar -cfm IPFS.jar def.manifest \
-C build org
rm -f def.manifest

.PHONY: tests
tests:
rm -rf build
mkdir -p build
echo "Name: IPFS Java HTTP Client library Tests" > def.manifest
echo "Class-Path: " $(CP_SPACE)>> def.manifest
javac $(JAVA_BUILD_OPTS) -d build -cp $(CP) `find src -name \*.java`
jar -cfm Tests.jar def.manifest \
-C build org
rm -f def.manifest
java -cp $(CP):Tests.jar org.junit.runner.JUnitCore org.ipfs.api.Test
Binary file added lib/hamcrest-core-1.3.jar
Binary file not shown.
Binary file added lib/junit-4.12.jar
Binary file not shown.

0 comments on commit a2d0fe7

Please sign in to comment.