#
#ident	"@(#)smail/conf:RELEASE-3_2_0_115:Makefile,v 1.16 2003/06/18 03:51:05 woods Exp"
#
# Makefile for the conf directory in the smail source tree
#
#    Copyright (C) 1987, 1988 Ronald S. Karr and Landon Curt Noll
#    Copyright (C) 1992  Ronald S. Karr
# 
# See the file COPYING, distributed with smail, for restriction
# and warranty information.

SHELL=/bin/sh

ROOT=..
SUB_DIRS=arch driver os lib

all mkdefs depend clobber clean: .MAKE
	@for i in ${SUB_DIRS}; do		\
		echo "Making $@ under $$i ...";	\
		(cd $$i && ${MAKE} $@);		\
		rc=$$?;				\
		if [ $$rc -ne 0 ] ; then	\
			exit $$rc;		\
		fi;				\
	 done

# there's nothing to install under here
install:

# WARNING:  don't depend on EDITME-dist, else local changes may be clobbered.
# If we did depend on EDITME-dist, we could add the else clause:
#
#	else \
#		echo "Please update $@ with new changes from $@-dist!" ; \
#		exit 1 ; \
#
# Note that we are paranoid and do not attempt to make it if it
# exists, even though this rule could only trigger if it doesn't
# exist.
#
.PRECIOUS: EDITME
EDITME:
	@if [ ! -f $@ ] ; then \
		cat $@-dist > $@ ; \
		echo "NOTICE: You may need to localise $@ for your environment!" ; \
	fi

.MAKE:

.PHONY: all install local-install clean local-clean clobber local-clobber depend local-depend lint mkdefs check_defs tags TAGS
.PHONY: .MAKE
