
#
# Copyright (C) 1997, 2000  James A. Cureington
#                           tonyc@acm.org
#
# $Id: Makefile,v 1.1 2001/03/04 00:02:58 tonycu Exp $
#
# $Log: Makefile,v $
# Revision 1.1  2001/03/04 00:02:58  tonycu
# initial check-in at sourceforge...
#
# Revision 1.2  2000/05/24 03:18:53  tony
# Updated all copyright dates.
#
# Revision 1.1  1999/09/13 04:35:17  tony
#
# Initial check-in of makefile
#
#

# base-directory for FSKC installation
# INSTALL_DIR=/usr/local/bin/fskc
INSTALL_DIR=/tmp/fskc

all: cpp_code tk_code

cpp_code:
	cd Cpp; make

tk_code:
	cd Tk; make

clean:
	cd Cpp; make clean; make clobber
	cd Tk; make clean; make clobber

install:
	mkdir -p $(INSTALL_DIR)

	cp Tk/fskc_about.txt  $(INSTALL_DIR)
	chmod 0444 $(INSTALL_DIR)/fskc_about.txt
	cp Tk/fskc_help.txt   $(INSTALL_DIR)
	chmod 0444 $(INSTALL_DIR)/fskc_help.txt
	cp Tk/gpl.txt         $(INSTALL_DIR)
	chmod 0444 $(INSTALL_DIR)/gpl.txt

	cp Tk/code.bmp  $(INSTALL_DIR)
	chmod 0444 $(INSTALL_DIR)/code.bmp
	cp Tk/find.bmp  $(INSTALL_DIR)
	chmod 0444 $(INSTALL_DIR)/find.bmp
	cp Tk/print.bmp  $(INSTALL_DIR)
	chmod 0444 $(INSTALL_DIR)/print.bmp
	cp Tk/run.bmp  $(INSTALL_DIR)
	chmod 0444 $(INSTALL_DIR)/run.bmp
	cp Tk/save.bmp  $(INSTALL_DIR)
	chmod 0444 $(INSTALL_DIR)/save.bmp

	cp Tk/cmd_palette.tcl  $(INSTALL_DIR)
	chmod 0555 $(INSTALL_DIR)/cmd_palette.tcl
	cp Tk/fsmcase.tcl      $(INSTALL_DIR)
	chmod 0555 $(INSTALL_DIR)/fsmcase.tcl
	cp Tk/menu_bar.tcl     $(INSTALL_DIR)
	chmod 0555 $(INSTALL_DIR)/menu_bar.tcl
	cp Tk/fskc_help.tcl    $(INSTALL_DIR)
	chmod 0555 $(INSTALL_DIR)/fskc_help.tcl
	cp Tk/global_vars.tcl  $(INSTALL_DIR)
	chmod 0555 $(INSTALL_DIR)/global_vars.tcl

	cp Tk/fsm_wish  $(INSTALL_DIR)
	chmod 0555 $(INSTALL_DIR)/fsm_wish
	cp Tk/fskc  $(INSTALL_DIR)
	chmod 0555 $(INSTALL_DIR)/fskc

uninstall:
	cd $(INSTALL_DIR); rm -f fskc_about.txt fskc_help.txt gpl.txt         \
                                 code.bmp find.bmp print.bmp run.bmp save.bmp \
                                 cmd_palette.tcl fsmcase.tcl menu_bar.tcl     \
                                 fskc_help.tcl global_vars.tcl fsm_wish fskc
	rmdir $(INSTALL_DIR); 

