#
# Makefile for irchat
#
# $Id: Makefile,v 1.6 1993/07/12 21:16:33 tmo Exp $
#

#
# If you don't have jwz's optimizing byte-compiler, uncomment the following
# lines.  A better idea would be to get it from archive.cis.ohio-state.edu
# in the file pub/gnu/emacs/elisp-archive/packages/bytecomp.tar.Z. It also
# comes with emacs19
#
DEFSUBST_SRC=  defsubst.el
# DEFSUBST_BIN=  defsubst.elc
# DEFSUBST_LOAD= -l ./$(DEFSUBST_BIN)

EMACS=  emacs
TAR=    gtar

# You shouldn't need to change anything after this point.

SOURCE = 	irchat-inlines.el	\
		irchat-globals.el	\
		irchat-filter.el	\
		irchat-commands.el	\
		irchat-handle.el	\
		irchat.el		\
		irchat-copyright.el	\
		irchat-vars.el		\
		gnus-caesar.el

irchat:	
	$(EMACS) -batch -q -l ./setpath.el -f batch-byte-compile  $(DEFSUBST_SRC) $(SOURCE)

doc:	irchat.texinfo
	$(EMACS) -batch -q irchat.texinfo \
		 -f texinfo-format-buffer -f save-buffer

all: irchat doc

clean: 
	-rm -f *.elc irchat

EXTRAS = 	Makefile irchat.texinfo irchat-hooks.el	\
		irchat-oldrevisions.el defsubst.el setpath.el

dist:	$(SOURCE) $(EXTRAS)
	$(TAR) cf irchat-`date +%d.%b.%Y`.tar $(SOURCE) $(EXTRAS)
	compress irchat-`date +%d.%b.%Y`.tar
