# $Id: //depot/Teapop/0.3/etc/Makefile.in#4 $
#
prefix		= @prefix@
sysconfdir	= @sysconfdir@

homespool       = @pop_homespool@
mailspool       = @pop_mailspool@

CHMOD    = @CHMOD@
INSTALL  = @INSTALL@
MV       = @MV@
RM       = @RM@
SED      = @SED@

build:
	@ echo Creating example teapop.passwd;				\
	if [ "${homespool}" != "nope" ]; then				\
		${SED} -e 's%@WHEREMAILIS@%~/${homespool}%g'		\
		    teapop.passwd.in > teapop.passwd ;			\
	else								\
		${SED} -e 's%@WHEREMAILIS@%${mailspool}%g'		\
		    teapop.passwd.in > teapop.passwd ;			\
	fi

install: build
	@echo Installing teapop.passwd.sample;
	${INSTALL} -d ${sysconfdir}; \
	${INSTALL} -m 0644 teapop.passwd ${sysconfdir}/teapop.passwd.sample; \

makefile: ../config/timestamp
	@ echo Updating Makefile
	@ if [ -f Makefile.tmp ]; then					\
		echo "Please remove Makefile.tmp";			\
		false;							\
	fi
	@ ${MV} Makefile Makefile.tmp
	@ ${SED} -e 's%^INSTALL *= *\.\..*%INSTALL  = ../config/install-sh -c%'\
		Makefile.tmp > Makefile
	@ ${RM} Makefile.tmp

../config/timestamp:
	@ echo Please run the configure script first
	@ false

depend:

clean:
	${RM} -f teapop.passwd

distclean: clean
	${RM} -f Makefile


syntax highlighted by Code2HTML, v. 0.9.1