On Wed, 25 Nov 1998 [EMAIL PROTECTED] wrote:
> Heres a simple Makefile I use.
>
> BIN = /home/jarvi/java/gps/bin/
> JAVAC = javac
> JFLAGS = -d /home/jarvi/java/gps/bin -O
> JFILES := $(patsubst %.java,$(BIN)%.class,$(wildcard *.java))
> SUBDIRS = almanac misc route trackpoint waypoint rxtx
>
> .SUFFIXES: .class .java
>
> $(BIN)%.class: %.java
> $(JAVAC) $(JFLAGS) $<
>
> all: $(JFILES) $(SOFILES)
> @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i; done
I use a script, typically in which ever directory's most likely to be
convenient. The script will typically have the command ... better, here's
one:
#!/bin/bash
jikes -d ~/Classes MyStocks.java \
Records/*.java \
Reports/*.java \
Reports/*/*.java \
|| exit
java Stocks.MyStocks
which will probably complete before javac's compiled anything.
Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.