#!/bin/sh
#require makefiletop
#require prefix
#phase config
#phase makefile
#after makefile_makefiletop
case $PHASE in
	config)
		dispn "Checking for configuration files..."
		CONF=`ls conf/ 2>/dev/null`
		disp "done"
		;;
	makefile)
		disp "Writing configure file installation entries..."

		$ECHO "install_conf:"

		for C in $CONF; do
			if test -f "conf/$C"; then
				dispn "	$C..."
				$ECHO "	if test ! -f \$(CONFDIR)/$C; then $INSTALL conf/$C \$(CONFDIR) $INSTALL_USER $INSTALL_GROUP 0644; fi"
				disp "done"
			fi
		done

		$ECHO
		;;
esac
