Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
VERSION=1.03

JC= javac
JFLAGS= -Xlint:unchecked -d bin -sourcepath src -cp $(CLASSPATH)
JFLAGS= -Xlint:unchecked -d bin -sourcepath src -cp $(CLASSPATH) -encoding UTF-8
CLASSPATH= lib/commons-cli-1.4.jar:lib/nbt-4.1.jar
DL= fetch
DLFLAGS=
#DL= curl
#DLFLAGS= -Os
#DL= fetch
#DLFLAGS=
DL= curl
DLFLAGS= -OLs
RM= rm -f

default: makedir srcdist bindist
Expand Down Expand Up @@ -41,13 +41,13 @@ lib/commons-cli-1.4.jar: lib/dist/commons-cli-1.4-bin.tar.gz
@( cd lib ; tar xzf dist/commons-cli-1.4-bin.tar.gz ; mv commons-cli-1.4/commons-cli-1.4.jar . ; rm -rf commons-cli-1.4 )

lib/dist/commons-cli-1.4-bin.tar.gz:
@( cd lib/dist ; $(DL) $(DLFLAGS) https://www-us.apache.org/dist//commons/cli/binaries/commons-cli-1.4-bin.tar.gz )
@( cd lib/dist ; $(DL) $(DLFLAGS) https://archive.apache.org/dist/commons/cli/binaries/commons-cli-1.4-bin.tar.gz )

lib/nbt-4.1.jar: lib/dist/4.1.tar.gz
@( cd lib ; tar xzf dist/4.1.tar.gz ; cd NBT-4.1 ; gradlew build ; mv build/libs/nbt-4.1.jar .. ; cd .. ; rm -rf NBT-4.1 )
@( cd lib ; tar xzf dist/4.1.tar.gz ; cd NBT-4.1 ; ./gradlew build ; mv build/libs/nbt-4.1.jar .. ; cd .. ; rm -rf NBT-4.1 )

lib/dist/4.1.tar.gz:
@( cd lib/dist ; $(DL) $(DLFLAGS) https://github.com/Querz/NBT/archive/4.1.tar.gz )
@( cd lib/dist ; $(DL) $(DLFLAGS) https://github.com/Querz/NBT/archive/refs/tags/4.1.tar.gz )

clean:
@$(RM) -r bin/*
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ This utility fully supports the Lord of the Rings mod (LOTRmod) v35.3.

# Compilation

## the following dependencies are needed for building:
- java 1.8 to 8
- zip
- unzip
- curl

Just type "make" in a Unix-like computer.

You'll need a Java Compiler (I used Java 1.8) and a zip package.
Expand Down