# Makefile for doc/
# $Id: Makefile.in,v 1.7 1999/12/15 02:32:57 guppy Exp $

SHELL = /bin/sh
top_srcdir = @top_srcdir@

@SET_MAKE@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@

DOCS = BOTNET BUG-REPORT CONTENTS KNOWN-PROBLEMS MODULES \
Ode_To_Beldin UPDATES.pre1.3 UPDATES1.3 UPDATES1.4 \
compiling.FAQ eggdrop.doc patch.howto tcl-commands.doc tricks

MAN1 = man1/eggdrop.1

doofus:
	@echo ""
	@echo "Let's try this from the right directory..."
	@echo ""
	@cd $(top_srcdir); $(MAKE)

all: $(DOCS) $(MAN1)

clean:
	@rm -f *~

install:
	@if test ! -d $(DEST)/doc; then \
		echo "Creating a doc subdirectory."; \
		$(top_srcdir)/mkinstalldirs $(DEST)/doc; \
	fi
	@if test ! -d $(DEST)/doc/man1; then \
		$(top_srcdir)/mkinstalldirs $(DEST)/doc/man1; \
	fi
	@echo "Copying docs."
	@for i in $(DOCS); do \
		$(INSTALL_DATA) $$i $(DEST)/doc/; \
	done
	@for i in $(MAN1); do \
		$(INSTALL_DATA) $$i $(DEST)/doc/man1/; \
	done

#safety hash
