#
# Makefile for the Demos directory
#

include ../config.make

what:
	@echo "Type make install to install demos"
install:
	-if [ ! -d $(STK_LIBRARY)/demos ] ; then mkdir -p $(STK_LIBRARY)/demos; fi
	for i in *.stk Widget/*.stk; \
	do \
	  j=`basename $$i`;\
	  sed -e 's=/usr/local/lib/stk=$(STK_LIBRARY)=' \
	      -e 's=/usr/local/bin=$(BIN_DIR)=' $$i > $(STK_LIBRARY)/demos/$$j;\
	  chmod a+x $(STK_LIBRARY)/demos/$$j;\
	done


