head	1.5;
access;
symbols;
locks; strict;
comment	@# @;


1.5
date	99.04.12.06.53.26;	author avernet;	state Exp;
branches;
next	1.4;

1.4
date	99.03.18.02.39.35;	author avernet;	state Exp;
branches;
next	1.3;

1.3
date	99.03.18.02.34.53;	author avernet;	state Exp;
branches;
next	1.2;

1.2
date	99.03.18.02.09.13;	author avernet;	state Exp;
branches;
next	1.1;

1.1
date	99.03.18.01.35.16;	author avernet;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Updated version number
@
text
@################################################################################
# Makefile
#
# N.B. You will need GNU make to use this make file.
################################################################################

################################################################################
# Common definitions.  Edit these settings for your site.  
#
# LOCATION     : where to write the classes and javadocs.
# JAVAC        : the java compiler
# JAVACOPTS    : the java compiler
# JAR          : the jar program
# CLASSDIR     : where to write class files
# DOCDIR       : where to put javadoc output
# JAVADOC      : the javadoc program
################################################################################

LOCATION     = .
JAVAC        = javac
JAVACOPTS    = -g -deprecation
JAR          = jar
CLASSDIR     = $(LOCATION)/classes
BINDIR       = ../bin
DOCDIR       = ../docs/api

# Javadoc 1.1
JAVADOC      = javadoc
JAVADOCOPT  = -d $(DOCDIR) -version -package
# Javadoc 1.2
#JAVADOC    = /usr/local/jdk1.2/bin/javadoc
#JAVADOCOPT = -d $(DOCDIR) -version -private \
#	-windowtitle "SPFC API" \
#	-splitindex -use \
#	-link http://java.sun.com/products/jdk/1.2/docs/api

################################################################################
# You should not need to change anything below here.
################################################################################

# Packages is the list of packages inside our base package.
NAME = spfc
BASE = org.apache.spfc
VERSION = 0.2.0
PACKAGES = \
	 $(BASE) \
	 $(BASE).util

DIRECTORIES	= $(subst .,/,$(PACKAGES))
BASEDIRECTORY	= $(subst .,/,$(BASE))
ALLSOURCES	= $(foreach dir,$(DIRECTORIES),$(wildcard $(dir)/*.java))
DISTNAME	= $(NAME)-$(VERSION)
DISTDIR		= /tmp/$(DISTNAME)

jar: $(ALLSOURCES)
	test -d $(CLASSDIR) || mkdir $(CLASSDIR)
	$(JAVAC) $(JAVACOPTS) -d $(CLASSDIR) $(ALLSOURCES)
	(cd $(CLASSDIR); $(JAR) cf $(NAME).jar *)
	test -d $(BINDIR) || mkdir $(BINDIR)
	mv $(CLASSDIR)/$(NAME).jar $(BINDIR)

javadoc:
	test -d $(DOCDIR) || mkdir $(DOCDIR)
	$(JAVADOC) $(JAVADOCOPT) $(PACKAGES)
	cp $(DOCDIR)/packages.html $(DOCDIR)/index.html

all: jar javadoc

dist:   all
	@@echo Creating distribution...
	rm -rf $(DISTDIR)
	mkdir $(DISTDIR)
	cd ..; cp -a * $(DISTDIR)
	rm -rf $(DISTDIR)/docs/dist
	rm -rf $(DISTDIR)/src/classes
	rm -rf `find $(DISTDIR) -type d -name CVS`
	cd $(DISTDIR)/..; tar cvzf  $(DISTNAME).tar.gz $(DISTNAME)
	cp $(DISTDIR)/../$(DISTNAME).tar.gz .
	rm -rf $(DISTDIR)/../$(DISTNAME).tar.gz $(DISTDIR)

test:
	@@echo ALLSOURCES: $(ALLSOURCES)
	@@echo DISTDIR: $(DISTDIR)

clean:
	rm -rf $(CLASSDIR) $(DOCDIR) $(BINDIR)/$(NAME).jar
@


1.4
log
@Create bin dir if it does not exist
@
text
@d44 1
a44 1
VERSION = 0.1.1
@


1.3
log
@Use dist instead of download in Makefile
@
text
@d59 1
@


1.2
log
@Updated makefile
@
text
@d44 1
a44 1
VERSION = 0.1
d73 1
a73 1
	rm -rf $(DISTDIR)/docs/download
@


1.1
log
@Remove some binaries, Makefile moved
@
text
@d64 1
@

