# Generated automatically from Makefile.in by configure.
# ------------------------------------------------------------------------
# 	Makefile for manual page files 
# ------------------------------------------------------------------------

section 	= n
prefix  	= /opt/tcl803
mandir  	= ${prefix}/man
sectiondir 	= $(mandir)/man$(section)
srcdir		= .

instdirs	= $(mandir) $(sectiondir)

manuals		= BLT barchart bgexec bitmap bltdebug busy dragdrop \
		  eps graph htext hierbox spline stripchart table tabset \
		  tile vector watch winop beep cutbuffer

SHELL    	= /bin/sh
RM		= rm -rf

all:

install: mkdirs
	@for i in $(manuals) ; do \
	    src=$(srcdir)/$$i.man ; \
	    dest=$(sectiondir)/$$i.$(section) ; \
	    echo "installing manual $$i" ; \
	    rm -f $$dest ; \
	    sed -e "/man\.macros/r man.macros" -e '/man\.macros/d' \
	    $$src > $$dest ; \
	    chmod 444 $$dest; \
	done

mkdirs:
	@for i in $(instdirs) ; do \
	    if test ! -d $$i ; then \
		mkdir $$i ; \
	    fi ; \
	done

clean:
	$(RM) man.macros

distclean: clean
	$(RM) $(srcdir)/*.bak $(srcdir)/*\~ $(srcdir)/"#"* Makefile
