#
# This makefile builds two demos, one for plain tcl and the other
#	for Tk.
#
# The actual makefiles are Makefile.square and Makefile.fact, which
#	are almost identical and can be used as a Makefile template
#	to build a dynamic-loadable extension to tcl

all: fact square
	echo "auto_mkindex . *.tcl" | tclsh

install:
	$(MAKE) -f Makefile.fact    install
	$(MAKE) -f Makefile.square  install

install.man:
	$(MAKE) -f Makefile.fact    install.man
	$(MAKE) -f Makefile.square  install.man

clean:
	$(MAKE) -f Makefile.fact    clean
	$(MAKE) -f Makefile.square  clean




fact:
	$(MAKE) -f Makefile.fact

square:
	$(MAKE) -f Makefile.square
