nodechan

decentralized peer-to-peer anonymous messageboard client
git clone git://squid-tech.com/nodechan.git
Log | Files | Refs | README

commit a798e8b5deda4b41272dff7939a02d43e3761534
parent adb79d86fd7ac2e558ff3924cec15a89078fcfa3
Author: Josh <jxm5210@g.rit.edu>
Date:   Sun, 11 Aug 2019 19:26:46 -0400

Merge pull request #2 from mckenney5/master

Replace build.sh and buildjar.sh with make, also removed the need for root
Diffstat:
MREADME.md | 5++++-
Dbuild.sh | 1-
Dbuildjar.sh | 5-----
Amakefile | 19+++++++++++++++++++
4 files changed, 23 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md @@ -7,7 +7,10 @@ This project is inspired by the peer-to-peer nature of Bittorrent, the decentral ### Installation The latest stable binary can be downloaded from [SquidTech](http://squid-tech.com/nodechan.html) and run. -If you would like to build NodeChan from source, clone this repository and run the "build.sh" script, or otherwise compile the Java files in the "src" directory. Make sure to include "lib/*" in your classpath when compiling. +If you would like to build NodeChan from source, clone this repository and type `make jar` to compile everything. + +If you're looking for a one-liner for cloning and compiling: +`git clone https://github.com/joshiemoore/NodeChan && cd NodeChan && make jar` ### Running diff --git a/build.sh b/build.sh @@ -1 +0,0 @@ -sudo javac -cp lib/WaifUPnP.jar src/*.java -d build diff --git a/buildjar.sh b/buildjar.sh @@ -1,5 +0,0 @@ -./build.sh -jar cfm NodeChan.jar manifest.mf build/ lib/* - -# compress the distributable tar file -tar cvzf NodeChan.tar.gz NodeChan.jar build/ lib/ diff --git a/makefile b/makefile @@ -0,0 +1,19 @@ +NODE_DEPENDS = lib/WaifUPnP.jar src/ChanPost.java src/ChanThread.java src/GUIAddPeer.java src/GUICreateNewThread.java src/GUIMain.java src/GUIRightClickMenu.java src/GUIThreadView.java src/IncomingThread.java src/NodeChan.java src/OutgoingThread.java src/Peer.java +JAR_DEPENDS = NodeChan.jar manifest.mf lib/WaifUPnP.jar + +NodeChan.jar: $(NODE_DEPENDS) + javac -cp lib/WaifUPnP.jar src/*.java -d build + +jar: $(JAR_DEPENDS) + make + jar cfm NodeChan.jar manifest.mf build/ lib/* + + # compress the distributable tar file + tar cvzf NodeChan.tar.gz NodeChan.jar build/ lib/ + +clean: + rm -v NodeChan.jar + rm -v NodeChan.tar.gz + # for safety, prompting the user if its okay to remove the build dir + rm -rIv build +