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

MAN_SECT 	= n
TOPDIR  	= /usr/local/blt
MANDIR  	= /usr/local/blt/man
SECT_DIR 	= $(MANDIR)/man$(MAN_SECT)
SHELL    	= /bin/sh
RM		= rm -rf
srcdir		= .

MANUALS		= BLT barchart bgexec bitmap bltdebug busy dragdrop graph \
		  htext spline table tile vector watch winop

OLDMANUALS	= bell cutbuffer

all:

install: install-dirs
	for i in $(MANUALS) ; do \
	    src=$(srcdir)/$$i.man ; \
	    dest=$(SECT_DIR)/$$i.$(MAN_SECT) ; \
	    echo "installing manual $$dest" ; \
	    rm -f $$dest ; \
	    sed -e "/man\.macros/r $(srcdir)/man.macros" -e '/man\.macros/d' \
		$$src > $$dest ; \
	    chmod 444 $$dest; \
	done

install-dirs:
	for i in $(TOPDIR) $(MANDIR) $(SECT_DIR) ; do \
	    if test ! -d $$i ; then \
		mkdir $$i ; \
	    fi ; \
	done

clean:
	$(RM) *.bak *\~ "#"*

