# Generated automatically from Makefile.in by configure.
# ---------------------------------------------------------------------------
#           [incr Tcl] - Object-oriented programming in Tcl
# ---------------------------------------------------------------------------
# This file is a Makefile for [incr Tcl].  If it has the name "Makefile.in"
# then it is a template for a Makefile; to generate the actual Makefile,
# run "./configure", which is a configuration script generated by the
# "autoconf" program (constructs like "@foo@" will get replaced in the
# actual Makefile.
# ---------------------------------------------------------------------------
ROOTNAME = itcl
VERSION  = 1.3
PACKAGE  = $(ROOTNAME)-$(VERSION)

SUBDIRS  = src man

all:
	@set -x; for i in $(SUBDIRS); do \
		(cd $$i; $(MAKE) -$(MAKEFLAGS) VERSION=$(VERSION) $@); \
		done
	@echo "== MAKE COMPLETE =="

install:
	@set -x; for i in $(SUBDIRS); do \
		(cd $$i; $(MAKE) -$(MAKEFLAGS) VERSION=$(VERSION) $@); \
		done
	@echo "== INSTALL COMPLETE =="

clean:
	rm -f $(PACKAGE).tar $(PACKAGE).tar.Z $(PACKAGE).uu
	@set -x; for i in $(SUBDIRS); do \
		(cd $$i; $(MAKE) -$(MAKEFLAGS) VERSION=$(VERSION) $@); \
		done

distclean:
	rm -f Makefile config.status
	rm -f $(PACKAGE).tar $(PACKAGE).tar.Z $(PACKAGE).uu
	@set -x; for i in $(SUBDIRS); do \
		(cd $$i; $(MAKE) -$(MAKEFLAGS) VERSION=$(VERSION) $@); \
		done

tar: warnings configure excludelist distclean Intro.ps
	rm -f $(PACKAGE).tar $(PACKAGE).tar.Z
	cd ..; tar cvfX /tmp/$(PACKAGE).tar $(PACKAGE)/EXCLUDE.tmp $(PACKAGE)
	mv /tmp/$(PACKAGE).tar .

uu: tar
	rm -f $(PACKAGE).uu
	compress $(PACKAGE).tar
	uuencode $(PACKAGE).tar.Z $(PACKAGE).tar.Z > $(PACKAGE).uu

Intro.ps: Intro
	@echo '== Make PostScript for Intro =='
	exit 1

configure: configure.in
	autoconf

excludelist:
	@echo "Making exclude list for Version $(VERSION)..."
	@rm -f EXCLUDE.tmp
	@cat EXCLUDE.FROM.TAR \
		| sed -e"s/%version%/$(VERSION)/g" \
		> EXCLUDE.tmp

warnings:
	@echo '>>'
	@echo '>> NOTE:'
	@echo '>> Did you reset Makefile flags to "-O"?'
	@echo '>>'
