Skip to content

Commit

Permalink
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.
26 changes: 26 additions & 0 deletions Makefile
@@ -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

0 comments on commit ae2ac8e

Please sign in to comment.