#-----------------------------------------------------------------------------
#
#  POPular -- A POP3 server and proxy for large mail systems
#
#  $Id: Makefile.am,v 1.5 2001/04/17 21:00:12 sqrt Exp $
#
#  http://www.remote.org/jochen/mail/popular/
#
#-----------------------------------------------------------------------------
#
#  Copyright 1999-2001 by Jochen Topf <jochen@remote.org>
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
#
#-----------------------------------------------------------------------------

EXTRA_DIST  := messagelist.dtd

LOG_EXTRACT := @PERL_PATH@ $(top_srcdir)/doc/bin/log-extract
LOG_RAW2MAN := @PERL_PATH@ $(top_srcdir)/doc/bin/log-raw2man
LOG_RAW2XML := @PERL_PATH@ $(top_srcdir)/doc/bin/log-raw2xml

.PHONY: all log clean

all: log

log: messagelist.xml

messagelist.xml: messagelist.raw
	$(LOG_RAW2XML) $< >$@ || rm $@

messagelist.raw: $(top_srcdir)/src/*.c
	$(LOG_EXTRACT) $(top_srcdir)/src/*.c >$@ || rm $@

clean:
	rm -f messagelist.raw messagelist.xml


#-- THE END ------------------------------------------------------------------


syntax highlighted by Code2HTML, v. 0.9.1