#
#ident	"@(#)smail/conf:RELEASE-3_2_0_101:Makefile,v 1.11 1997/04/19 22:29:45 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
AR=ar
LINT=lint
SRC_PREFIX=

ROOT=..
SUB_DIRS=arch driver os lib
DIST_SRC=EDITME-dist EDITME-always EDITME-most EDITME-sometimes EDITME-spinne \
	EDITME-weirdo
MISCSRC=Makefile
SRC=${MISCSRC} ${DIST_SRC}

all:
	@for i in ${SUB_DIRS}; do \
		echo "Build default targets under ${SRC_PREFIX}$$i ..."; \
		(cd $$i; ${MAKE} SRC_PREFIX=${SRC_PREFIX}$$i/); \
	 done

names:
	@for i in ${SRC}; do echo ${SRC_PREFIX}$$i; done
	@for i in ${SUB_DIRS}; do \
		(cd $$i; ${MAKE} SRC_PREFIX=${SRC_PREFIX}$$i/ $@); \
	 done

depend clobber clean:
	@for i in ${SUB_DIRS}; do \
		echo "Making $@ under ${SRC_PREFIX}$$i ..."; \
		(cd $$i; ${MAKE} SRC_PREFIX=${SRC_PREFIX}$$i/ $@); \
	 done

# 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.
#
EDITME:
	@if [ ! -f $@ ] ; then \
		cat $@-dist > $@ ; \
		echo "NOTICE: You may need to localise $@ for your environment!" ; \
	fi

mkdefs install:
