# Makefile to install help files
# $Id: Makefile.in 715 2006-07-14 21:01:55Z michael $

INSTALL=	@INSTALL@
INSTALL_DATA=	@INSTALL_DATA@
RM=		@RM@

prefix=		@prefix@
exec_prefix=	@execprefix@
datarootdir	= $(DESTDIR)@datarootdir@
uhelpdir=	${prefix}/help/users
ohelpdir=	${prefix}/help/opers

SYMLINKS=   topic accept cmode admin names links away whowas \
		version kick who invite quit join list nick oper part \
		time motd userhost users whois ison lusers user help \
		pass error challenge knock ping pong flags
all:
build:
clean:
depend:

install: 
	@echo installing help files...
	-@if test ! -d $(prefix)/help; then \
		echo "mkdir $(prefix)/help"; \
		mkdir $(prefix)/help; \
		echo "mkdir $(prefix)/help/users"; \
		mkdir $(prefix)/help/users; \
		echo "mkdir $(prefix)/help/opers"; \
		mkdir $(prefix)/help/opers; \
	fi
	@for help in opers/*; do \
	if [ -f $$help ]; then \
		${INSTALL_DATA} $$help $(ohelpdir); \
	fi \
	done
	@for help in users/*; do \
	if [ -f $$help ]; then \
		$(INSTALL_DATA) $$help $(uhelpdir); \
	fi \
	done
	@for link in $(SYMLINKS); do \
		rm -f $(uhelpdir)/$$link; \
		ln -s $(ohelpdir)/$$link $(uhelpdir); \
	done

distclean:
	${RM} -f Makefile

depend:
