# Misc. scripts
#
# Copyright (c) 1996, 1997
#	Transvirtual Technologies, Inc.  All rights reserved.
#
# See the file "license.terms" for information on usage and redistribution 
# of this file. 

srcdir=		@srcdir@
prefix=		@prefix@
exec_prefix=	@exec_prefix@
bindir=		@bindir@
INSTROOT=	@INSTROOT@
INSTALL=	@INSTALL@
INSTALL_SCRIPT=	@INSTALL_SCRIPT@
MKDIR=		@MKDIR@
SCREXT=		@SCREXT@
KPREFIX=	@KPREFIX@

SCRIPTFILES_PIZZA=\
		pizza pizzadoc

SCRIPTFILES_SUN=\
		appletviewer jar javac javadoc javakey javap jdb \
		native2ascii rmic rmiregistry serialver

SCRIPTFILES_COMPAT=\
		appletviewer java javac javadoc

PSCRIPTFILES=	install-jar kaffe

all:

clean:

distclean:
		rm -f Makefile .depend $(PSCRIPTFILES) $(SCRIPTFILES_SUN) $(SCRIPTFILES_PIZZA)
		(cd compat ; rm -f $(SCRIPTFILES_COMPAT))
		-rmdir compat

install:	install-pizza install-sun install-jars @suncompatible@

install-sun:
		test -d $(INSTROOT)$(bindir) || $(MKDIR) $(INSTROOT)$(bindir)
		for i in $(SCRIPTFILES_SUN) ;\
		do \
			$(INSTALL_SCRIPT) ./$(SCREXT)/$$i $(INSTROOT)$(bindir)/$(KPREFIX)$$i$(SCREXT)  ;\
		done
		$(INSTALL_SCRIPT) $(srcdir)/$(SCREXT)/report-kaffe-bug $(INSTROOT)$(bindir)/$(KPREFIX)report-kaffe-bug$(SCREXT)  ;\

install-pizza:
		for i in $(SCRIPTFILES_PIZZA) ;\
		do \
			$(INSTALL_SCRIPT) ./$(SCREXT)/$$i $(INSTROOT)$(bindir)/$(KPREFIX)$$i$(SCREXT)  ;\
		done

install-compat:
		for i in $(SCRIPTFILES_COMPAT) ;\
		do \
			$(INSTALL_SCRIPT) compat/$$i $(INSTROOT)$(bindir)/$(KPREFIX)$$i$(SCREXT)  ;\
		done

install-jars:
		for i in $(PSCRIPTFILES) ;\
		do \
			$(INSTALL_SCRIPT) $$i $(INSTROOT)$(bindir)/$(KPREFIX)$$i ;\
		done

derived-files:

depend:

