aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
blob: f6cdfe06ad40903ecafda1e6a15d0618eb512467 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
include ../java.mk

#.SUFFIXES: .java .class
     SRCS = *.java
     OBJS = $(SRCS:.java=.class)
     DOCS = ../doc/html/api

  GNUPATH = /usr/share/java/gnu-getopt.jar:/usr/share/java/regexp.jar # debian SID
#GNUPATH = /usr/lib/jdk1.1/lib/classes.zip:/usr/share/java/gnu.getopt.jar:/usr/share/java/regexp.jar # debian woody
#GNUPATH = ${HOME}/java/Jars/gnu.getopt.jar:${HOME}/java/Jars/regexp.jar # Others
#RTPATH = /usr/local/jdk1.5.0/jre/lib/rt.jar # for jikes on my box
#RTPATH = /usr/local/jdk118_v3/lib/classes.zip:/home/jestin/java/Jars/swingall.jar # for 1.1.8 on my box

CLASSPATH = -classpath .:$(GNUPATH)

#ivy-java:
#	$(JAVAC) $(JAVACOPTS) $(CLASSPATH) $(SRCS)

all:
	$(JAVAC) -d . $(JAVACOPTS) $(CLASSPATH) $(SRCS)
	

clean:
	/bin/rm -f -- $(OBJS) *~ *.bak $(JAR) fr/dgac/ivy/*.class

docs:
	rm -fR $(DOCS)/*html
	rm -fR $(DOCS)/*css
	rm -fR $(DOCS)/fr/dgac/ivy/*html
	#javadoc $(CLASSPATH) -d $(DOCS) $(SRCS)
	javadoc -d $(DOCS) $(SRCS)
	rm -f $(DOCS)/package-list