This is a simple Makefile script to compile a Java project using gcj
.
Just have your .java
files in src/
and then adjust the config.mk
file.
To compile the program just run make jar
to compile it to a jar file named
dist/main.jar
or run make bin
to compile it to a binary at dist/main
.
If you need some external jar files, just put them into res/
.
If you want to use this repo for a different project, just add it as a remote:
$ cd your_project/
$ mv src/ oldsrc/ # just to be sure
$ git remote add gcj-makefile git://benary.org/benaryorg/gcj-makefile.git
$ git pull gcj-makefile master
$ mv oldsrc/* src/
$ rmdir oldsrc/
WTFPL as specified in the LICENSE
file.