# $Id: Makefile 1991 2012-05-04 19:22:33Z 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        \
	  floatingcontact \
	  floatinglog     \
	  georoster       \
	  gmail           \
	  iconsets        \
	  jidlink         \
	  latex           \
	  mute            \
	  openurl         \
	  osd             \
	  poker           \
	  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
