########################################################################
#
# filepp 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; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#
########################################################################
########################################################################
#
#  Project      :  File Pre Processor - cpp module
#  Filename     :  $RCSfile: Makefile.in,v $
#  Originator   :  $Author: darren $
#  Maintainer   :  Darren Miller: darren@cabaret.demon.co.uk
#  File version :  $Revision: 1.2 $
#  Last changed :  $Date: 2003/07/14 10:03:17 $
#  Description  :  Makefile for cpp module
#  Licence      :  GNU copyleft
#
########################################################################

##############################################################################
# Paths
##############################################################################
srcdir = @srcdir@
moduledir = @moduledir@
# top level of test build directory
TESTBUILD = @top_builddir@/testbuild
TESTFILEPP = $(TESTBUILD)/bin/filepp
ECHO=@echo@
DIFF=@diff@
RM=@rm@
INSTALL=@INSTALL@

test:
	@$(ECHO) ----------- Testing cpp.pm ----------------
	$(TESTFILEPP) -m cpp.pm $(srcdir)/test.in -o test.out
	$(DIFF) $(srcdir)/test.good test.out
	@$(ECHO) ----------- Done --------------------------

install:
	$(INSTALL) -m 644 $(srcdir)/cpp.pm $(moduledir)

clean:
	$(RM) test.out

distclean:
	$(RM) Makefile

##############################################################################
# End of file
##############################################################################
