########################################################################
#
# $Id: Makefile.in,v 1.21 2006/05/26 19:33:27 mavrik Exp $
#
########################################################################
#
# Purpose: Makefile for the project's root directory.
#
########################################################################

#.SILENT:

prefix			= @prefix@
exec_prefix		= @exec_prefix@
srcdir			= @srcdir@
VPATH			= ${srcdir}

INSTALL			= @INSTALL@

SUBDIRS			=\
			@server_subdirs@\
			doc\
			etc\
			src\
			tools\
			tests # Note: Keep this subdir last.

CONFIGURE_FILES		=\
			Makefile\
			config.cache\
			config.log\
			config.status\
			configure.lineno

DSV_LINKS		=\
			ap_snprintf.c\
			ap_snprintf.h\
			dsv.c\
			dsv.h

all:
	@cwd=`pwd`; for i in ${SUBDIRS}; do\
		echo '===>' $${i} && cd $${cwd}/$${i} && ${MAKE} $@ ;\
	done

test:
	@cwd=`pwd`; for i in ${SUBDIRS}; do\
		echo '===>' $${i} && cd $${cwd}/$${i} && ${MAKE} $@ ;\
	done

install:
	@umask 22; if [ ! -d ${prefix} ]; then mkdir -p ${prefix}; fi
	@cwd=`pwd`; for i in ${SUBDIRS}; do\
		echo '===>' $${i} && cd $${cwd}/$${i} && ${MAKE} $@ ;\
	done

clean:
	@cwd=`pwd`; for i in ${SUBDIRS}; do\
		echo '===>' $${i} && cd $${cwd}/$${i} && ${MAKE} $@ ;\
	done

clean-all:
	@cwd=`pwd`; for i in ${SUBDIRS}; do\
		echo '===>' $${i} && cd $${cwd}/$${i} && ${MAKE} $@ ;\
	done
	rm -f ${CONFIGURE_FILES}

auto: mk-links
	@if [ "${srcdir}" != `echo "@""srcdir""@"` ]; then\
		echo "";\
		echo "ERROR: The 'auto' target is for release building, and is not VPATH";\
		echo "       aware. To exercise this target, get into the project's root";\
		echo "       directory and run: 'make -f Makefile.in auto'";\
		echo "";\
		exit 1;\
	fi
	autoconf && autoheader ; rm -rf autom4te.cache src/config.h.in~

mk-links:
	@if [ "${srcdir}" != `echo "@""srcdir""@"` ]; then\
		echo "";\
		echo "ERROR: The 'mk-links' target is for release building, and is not VPATH";\
		echo "       aware. To exercise this target, get into the project's root";\
		echo "       directory and run: 'make -f Makefile.in mk-links'";\
		echo "";\
		exit 1;\
	fi
	@for file in ${DSV_LINKS}; do\
		( cd tools/webjob-dsvtool && if [ ! -L $${file} ] ; then ln -s -f ../../src/$${file} $${file} ; fi ) ;\
	done

rm-links:
	@if [ "${srcdir}" != `echo "@""srcdir""@"` ]; then\
		echo "";\
		echo "ERROR: The 'rm-links' target is for release building, and is not VPATH";\
		echo "       aware. To exercise this target, get into the project's root";\
		echo "       directory and run: 'make -f Makefile.in rm-links'";\
		echo "";\
		exit 1;\
	fi
	@for file in ${DSV_LINKS}; do\
		( cd tools/webjob-dsvtool && if [ -L $${file} ] ; then rm -f $${file} ; fi ) ;\
	done

atar: ctar dtar

ctar:
	@cwd=`pwd`; dir=`basename $${cwd}`;\
	tar -C ../ -zchf "../$${dir}-current.tgz" $${dir}

dtar:
	@cwd=`pwd`; dir=`basename $${cwd}`; date=`date "+%Y-%m-%d"`;\
	tar -C ../ -zchf "../$${dir}-$${date}.tgz" $${dir}



syntax highlighted by Code2HTML, v. 0.9.1