forked from 3esmit/JObexFTP
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Added Makefile
- Loading branch information
chrisdew
committed
Jan 26, 2011
1 parent
8cd4bfc
commit ae2ac8e
Showing
1 changed file
with
26 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,26 @@ | ||
# This Makefile builds jobexftp.jar of Chris Dew's AMD64 Ubuntu 10.04 desktop box. | ||
# It might work for your machine, or you might know Ant inside out and write a good build mechanism | ||
# for us all. | ||
# It is not beautiful or efficient - it builds java files into class files using find :-( | ||
|
||
JAVAC=/usr/bin/javac | ||
JOPTS=-d builddir | ||
JAVA=/usr/bin/java | ||
BINARY=jobexftp.jar | ||
JAR=jar | ||
|
||
all: clean $(BINARY) | ||
|
||
clean: | ||
# cleaning | ||
if test -f $(BINARY) ; then rm $(BINARY) ; fi | ||
if test -d builddir ; then rm -rf builddir ; fi | ||
|
||
builddir: | ||
# compiling... | ||
if ! test -d builddir ; then mkdir builddir ; fi | ||
$(JAVAC) $(JOPTS) `find src -name "*.java"` | ||
|
||
$(BINARY): builddir | ||
# packaging $(BINARY) | ||
$(JAR) cfe $(BINARY) com.lhf.jobexftp.StandAloneApp -C builddir com |