-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reinstated Makefile so we don't force people to use maven.
- Loading branch information
1 parent
647f80a
commit a2d0fe7
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Binary file not shown.