diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 61 |
1 files changed, 27 insertions, 34 deletions
diff --git a/src/Makefile b/src/Makefile index dd358e7..16eb139 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,38 +1,31 @@ -# -# Ivy, Java interface -# -# Copyright (C) 1998-1999 -# Centre d'Études de la Navigation Aérienne -# -# Makefile -# -# Authors: Francois-Regis Colin <colin@cenatoulouse.dgac.fr> -# Yannick Jestin <jestin@cenatoulouse.dgac.fr> -# -# $Id$ -# -SHELL = /bin/sh -VERSION = 1.0 +# JAVAJAR = /usr/lib/j2re1.3/lib/rt.jar +#CLASSPATH = -classpath $(JAVAJAR) +JAVACOPTS = -d . -deprecation $(CLASSPATH) + SRCS = *.java + JAR = ../lib/Ivy.jar + VER = 1.0.5 + DIST = ../lib/ivy-java-$(VER).jar + JAVAC = jikes +# JAVAC = javac + DOCS = doc/html/api + +ivy-java: + $(JAVAC) $(JAVACOPTS) $(SRCS) all: + $(JAVAC) $(JAVACOPTS) $(SRCS) + +clean: + /bin/rm -f -- *class *~ *.bak $(JAR) + ctags $(SRCS) -install: - test -d $(PREFIX)/tmp/fr/dgac/ivy || mkdirhier $(PREFIX)/tmp/fr/dgac/ivy - for f in *.class; do \ - cp $$f $(PREFIX)/tmp/fr/dgac/ivy; \ - done - cd $(PREFIX)/tmp && jar cvf ivy-java.jar fr/ +jar: + fastjar cvfm $(JAR) manifest fr + +dist: + fastjar cvfm $(DIST) manifest fr src debian redhat doc Makefile manifest TODO - test -d $(PREFIX)/usr/lib || mkdirhier $(PREFIX)/usr/lib - install -m 644 $(PREFIX)/tmp/ivy-java.jar $(PREFIX)/usr/lib - \rm -rf $(PREFIX)/tmp/ - test -d $(PREFIX)/usr/src/ivy-java/fr/dgac/ivy || mkdirhier $(PREFIX)/usr/src/ivy-java/fr/dgac/ivy - for f in *.java; do \ - install -m 644 $$f $(PREFIX)/usr/src/ivy-java/fr/dgac/ivy; \ - done - test -d $(PREFIX)/usr/man/man1 || mkdirhier $(PREFIX)/usr/man/man1 - for f in `find ../doc/*.1 -type f -maxdepth 1`; do \ - install -m 644 $$f $(PREFIX)/usr/man/man1; \ - done -rpm:: - /usr/bin/rpmize +docs: + rm -fR $(DOCS)/* + mkdir $(DOCS) + javadoc -d $(DOCS) $(SRCS) |