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


1.2
date	99.03.18.01.35.01;	author avernet;	state dead;
branches;
next	1.1;

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


desc
@@


1.2
log
@Remove some binaries, Makefile moved
@
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.1
PACKAGES = \
	$(BASE) \
	$(BASE).util

DIRECTORIES   = $(subst .,/,$(PACKAGES))
BASEDIRECTORY = $(subst .,/,$(BASE))
ALLSOURCES    = $(foreach dir,$(DIRECTORIES),$(wildcard $(dir)/*.java))
BUILDDIR      = $(PWD)

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

javadoc:
	test -d $(DOCDIR) || mkdir $(DOCDIR)
	$(JAVADOC) $(JAVADOCOPT) $(PACKAGES)

all: jar javadoc

dist:   jar javadoc
	@@echo Creating distribution...
	(cd ..; tar cvfz $(NAME)-$(VERSION).tar.gz .)

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

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


1.1
log
@Added Makefile
@
text
@@

