# $Id: Makefile 1513 2008-10-15 17:39:41Z sergei $

PREFIX = /usr/local
TKABBERPLUGINSDIR = $(PREFIX)/share/tkabber-plugins
DOCDIR = $(PREFIX)/share/doc/tkabber-plugins

SUBDIRS = aniemoticons \
	  attline      \
	  bc           \
	  browser      \
	  checkers     \
	  chess        \
	  ctcomp       \
	  custom-urls  \
	  cyrillize    \
	  debug        \
	  ejabberd     \
	  floatinglog  \
	  georoster    \
	  gmail        \
	  iconsets     \
	  jidlink      \
	  latex        \
	  mute         \
	  openurl      \
	  osd          \
	  presencecmd  \
	  quiz         \
	  quotelastmsg \
	  receipts     \
	  renju        \
	  reversi      \
	  singularity  \
	  socials      \
	  spy          \
	  stripes      \
	  tclchat      \
	  tkabber-khim \
	  traffic      \
	  unixkeys     \
	  whiteboard

install: install-bin install-doc

install-bin:
	mkdir -p $(DESTDIR)/$(TKABBERPLUGINSDIR)
	cp -r $(SUBDIRS) $(DESTDIR)/$(TKABBERPLUGINSDIR)
	echo ""
	echo ""
	echo ""
	echo "To enable desired plugins copy or link their directories to ~/.tkabber/plugins/"
	echo ""
	echo ""
	echo ""

install-doc:
	mkdir -p $(DESTDIR)/$(DOCDIR)
	cp COPYING ChangeLog README $(DESTDIR)/$(DOCDIR)

.PHONY: install install-bin install-doc
