#
#===========================================================================
#=                                                                         =
#=  (C) Copyright 1995, Computer Technology Institute (CTI)                =
#=                                                                         =
#=  Permission to use, copy, modify and distribute this software and       =
#=  its documentation for non-commercial use and without fee is hereby     =
#=  granted, provided that the above copyright notice appear in all        =
#=  copies and that both that copyright notice and this permission         =
#=  notice and warranty disclaimer appear in supporting documentation,     =
#=  and that the name of Computer Technology Institute (CTI) or any of     =
#=  its entities not be used in advertising or publicity pertaining to     =
#=  distribution of the software and its documentation without specific    =
#=  prior permission.                                                      =
#=                                                                         =
#=  Computer Technology Institute (CTI) disclaims all warranties with      =
#=  regard to this software and makes no representations about the         =
#=  suitability of this software and its documentation for any purpose.    =
#=  It is provided "as is" without expressed or implied warranty.          =
#=                                                                         =
#===========================================================================
#=                                                                         =
#=                        Project CTI-Print                                =
#=                                                                         =
#= File:                                                                   =
#=   Makefile                                                              =
#=                                                                         =
#= Synopsis:                                                               =
#=   This is the Makefile to build and install everything.                 =
#=                                                                         =
#= Author:                                                                 =
#=   Panos Dimakopoulos, Systems Programmer,                                =
#=   Computer Technology Institute,                                        =
#=   Division of Computing Facilities,                                     =
#=   P.O. Box 1122,                                                        =
#=   261 10  Patras,                                                       =
#=   Greece                                                                =
#=   (e-mail: dimakop@cti.gr)                                              =
#=   Tel: +30 61 992061                                                    =
#=   Fax: +30 61 993973                                                    =
#=                                                                         =
#===========================================================================
#


#============================================================================
#= Modification History:
#= 	Revision 1.1	95/01/12	18:20:17
#=		 Creation.
#= 	Revision 1.2	95/02/10	13:46:08
#=		 Full CTI address.
#= 	Revision 1.3	95/02/13	19:32:00
#=		 Make.inc moved to parent directory.
#= 	Revision 1.4	95/02/14	12:02:31
#=		 install depends on all so that with "make install"
#=		 we get the code built as well.
#= 	Revision 1.5	95/08/22	15:24:00
#=		 Make clean now calls "make clean" for the underneath dirs.
#=
#

include ../Make.inc

TARFILE=/tmp/HP4.TAR

distribution:
	tar cvf ${TARFILE} `cat ./FILES`
	compress ${TARFILE}

install: all
	-mkdir -p ${INSTDIR}
	-mkdir -p ${MAN}
	-mkdir -p ${ETC}
	for i in bphp4 ifhp4 man conf fonts ; do \
		echo "Installing from directory" $$i ; \
		(cd $$i ; make install) ; \
	done ;

all: 
	for i in bphp4 ifhp4 man conf fonts ; do \
		echo "Making in directory" $$i ; \
		(cd $$i ; make all) ; \
	done ;

remove: 
	for i in ifhp4 bphp4 man conf fonts ; do \
		echo "Removing in directory" $$i ; \
		(cd $$i ; /bin/rm -f * ) ; \
	done ;

clean: 
	-for i in ifhp4 bphp4 man ; do \
		echo "Cleaning in directory" $$i ; \
		(cd $$i ; make clean ) ; \
	done ;
