# $Header:Makefile 12.0$ 
# $ACIS:Makefile 12.0$ 
# $Source: /ibm/acis/usr/src/new/RCS/Makefile,v $ 

#
# 5799-WZQ (C) COPYRIGHT = NONE
# LICENSED MATERIALS - PROPERTY OF IBM
#
#	Makefile	4.21	86/06/07
#
DESTDIR=
CFLAGS=	-O

# Programs that live in subdirectories, and have makefiles of their own.
#
#NOTYET# SUBDIR=	ansi apl bib courier cpm dsh help hyper icon jove kermit mh \
	mkmf np100 patch rcs sunrpc tac tools
SUBDIR=	notes
#
# Default programs that are installed
#
#NOTYET# STDINST=bib jove mh patch rcs
STDINST= notes
#
# Special purpose software that requires custom installation,
# or may not be needed by all sites
#
#NOTYET	OPTDIR=	B dipress emacs enet mmdf news nntp notes pathalias rn \
#NOTYET	spms sumacc umodem xns X

all:	${SUBDIR}

${SUBDIR}: FRC
	cd $@; make ${MFLAGS}

#NOTYET	${OPTDIR}: FRC
#NOTYET		cd $@; make ${MFLAGS} all

install:
	for i in ${STDINST}; do \
		(cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done

installall:
	for i in ${SUBDIR}; do \
		(cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done

clean:
	for i in ${SUBDIR}; do (echo $$i; cd $$i; make ${MFLAGS} clean); done
#NOTYET		-for i in ${OPTDIR}; do (echo $$i; cd $$i; make ${MFLAGS} clean); done

#Todo: make sure that the subdirectories have depend targets
depend:

FRC:
