# $Id: Makefile,v 1.28 2001/03/26 20:17:51 ghudson Exp $

SHELL=/bin/sh
ETCDIR=/etc
ATHRETCDIR=/etc/athena
ATHLIBDIR=/usr/athena/lib
ATHSHAREDIR=/usr/athena/share
ATHMANDIR=/usr/athena/man
CONFIG=/afs/athena.mit.edu/system/config

all:
	cd os/${OS} && ${MAKE} $@

check:
	cd os/${OS} && ${MAKE} $@

install:
	mkdir -p ${DESTDIR}/private/etc
	mkdir -p ${DESTDIR}/private/var
	ln -s private/etc ${DESTDIR}/etc
	ln -s private/var ${DESTDIR}/var
	mkdir -p ${DESTDIR}${ATHRETCDIR}
	mkdir -p ${DESTDIR}${ATHLIBDIR}
	mkdir -p ${DESTDIR}${ATHSHAREDIR}
	mkdir -p ${DESTDIR}${ATHMANDIR}
	install -c -m 0644 athinfo.access ${DESTDIR}${ATHRETCDIR}
	install -c -m 0644 krb.conf ${DESTDIR}${ATHRETCDIR}
	install -c -m 0644 krb.realms ${DESTDIR}${ATHRETCDIR}
	install -c -m 0644 krb5.conf ${DESTDIR}${ETCDIR}
	install -c -m 0644 lpd.conf ${DESTDIR}${ETCDIR}
	install -c -m 0644 lpd.perms ${DESTDIR}${ETCDIR}
	install -c -m 0444 mandesc ${DESTDIR}${ATHMANDIR}
	install -c -m 0444 masks ${DESTDIR}${ATHRETCDIR}
	install -c -m 0644 named.conf ${DESTDIR}${ETCDIR}
	install -c -m 0644 named.localhost ${DESTDIR}${ETCDIR}
	install -c -m 0644 named.localhost.rev ${DESTDIR}${ETCDIR}
	install -c -m 0644 named.root ${DESTDIR}${ETCDIR}
	install -c -m 0644 ntp.conf ${DESTDIR}${ETCDIR}
	install -c -m 0644 sshd_config ${DESTDIR}${ETCDIR}
	install -c -m 0644 zephyr.vars ${DESTDIR}${ATHRETCDIR}
	rm -f ${DESTDIR}${ETCDIR}/krb.conf
	ln -s athena/krb.conf ${DESTDIR}${ETCDIR}/krb.conf
	rm -f ${DESTDIR}${ETCDIR}/krb.realms
	ln -s athena/krb.realms ${DESTDIR}${ETCDIR}/krb.realms
	cd os/${OS} && ${MAKE} $@

clean:
	cd os/${OS} && ${MAKE} $@

distclean:
	cd os/${OS} && ${MAKE} $@
