#  (c) Copyright 1997, KL GROUP INC.  
#  ALL RIGHTS RESERVED 
# 
#  This file is provided for demonstration and educational uses only.
#  Permission to use, copy, modify and distribute this file for
#  any purpose and without fee is hereby granted, provided that the
#  above copyright notice and this permission notice appear in all
#  copies, and that the name of KL Group not be used in advertising
#  or publicity pertaining to this material without the specific,
#  prior written permission of an authorized representative of
#  KL Group.
# 
#  KL GROUP MAKES NO REPRESENTATIONS AND EXTENDS NO WARRANTIES, EX-
#  PRESS OR IMPLIED, WITH RESPECT TO THE SOFTWARE, INCLUDING, BUT
#  NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
#  FITNESS FOR ANY PARTICULAR PURPOSE, AND THE WARRANTY AGAINST IN-
#  FRINGEMENT OF PATENTS OR OTHER INTELLECTUAL PROPERTY RIGHTS.  THE
#  SOFTWARE IS PROVIDED "AS IS", AND IN NO EVENT SHALL KL GROUP OR
#  ANY OF ITS AFFILIATES BE LIABLE FOR ANY DAMAGES, INCLUDING ANY
#  LOST PROFITS OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES 
#  RELATING TO THE USE OF THIS SOFTWARE.
#
#   RCSID -- $RCSfile: Makefile $ $Revision: 2.0 $
#            $Date: 1997/06/09 19:10:02 $  $Locker: $  KL Group Inc.

TOPDIR = ../../../..

SRC =  \
colorPicker.java \
colorSample.java \
preferences.java \
frameButton.java \
main.java

CLASSES = $(SRC:.java=.class)
TOPDIR = ../../../..
P = jclass/bwt/demos/colorpicker

JAVAC = javac 

all: $(CLASSES)

install:
	chmod 664 *.java *.html Makefile; \
	$(TOPDIR)/d2u *.java *.html Makefile; \
	$(TOPDIR)/u2d *.java *.html Makefile; \
	cd $(TOPDIR);  \
	zip -u -n .class demos.zip $(P)/*.class $(P)/*.java $(P)/*.html $(P)/Makefile $(P)/*.dat $(P)/*.gif; \
	cd $(P);  \
	$(TOPDIR)/d2u *.java *.html Makefile; \
	cd $(TOPDIR);  \
	tar uvf demos.tar $(P)/*.class $(P)/*.java $(P)/*.html $(P)/Makefile $(P)/*.dat $(P)/*.gif; \
	chmod 444 $(P)/*.java $(P)/*.html $(P)/Makefile; 

run:
	java main
	appletviewer index.html

EXTRA = \
Makefile \
makefile \
index.html

src:
	cd $(TOPDIR); \
	chmod 664 $(P)/*.java $(P)/*.html $(P)/Makefile; \
	zip -u src.zip $(P)/*.java $(P)/*.html $(P)/Makefile $(P)/*.dat $(P)/*.gif; 

strip:
	/8/jstrip/jstrip *.class

%.class: %.java
	$(JAVAC) $<

clean:
	rm -f *.class

src_clean:
	rm -f *.class *.java
	SCCS update
