head	1.6;
access;
symbols;
locks; strict;
comment	@# @;


1.6
date	96.05.28.04.09.32;	author ghudson;	state Exp;
branches;
next	1.5;

1.5
date	96.03.22.00.38.11;	author ghudson;	state Exp;
branches;
next	1.4;

1.4
date	96.03.19.22.41.40;	author warlord;	state Exp;
branches;
next	1.3;

1.3
date	96.03.19.22.14.54;	author warlord;	state Exp;
branches;
next	1.2;

1.2
date	96.03.19.20.12.59;	author warlord;	state Exp;
branches;
next	1.1;

1.1
date	96.03.19.19.40.10;	author ghudson;	state Exp;
branches;
next	;


desc
@Based on Makefile, but we want to be able to use #ifdefs.
@


1.6
log
@Add install (installation materials).
Add code for configuring the top directory, rather than relying on an
 OS-specific symlink in the source directory.
@
text
@# Notes:
#	* This file uses imake solely in order to be able to do #ifdefs,
#	  and shouldn't rely on any particular imake templates.
#	* AL needs to be built in build tree before telnet

CONFDIR=	/usr/athena/config

#ifdef __NetBSD__
OSOTHER=emacs-19.30 perl5.001 top
TOPID=netbsd
#endif

ATHIMAKE=	AL adduser attach cleanup config delete discuss from \
		getcluster gettime gms help hesiod hostinfo install ispell \
		kerberometer lert login lpr machtype mkserv neos quota \
		rkinit sendbug session synctree techinfo telnet \
		transcript-v2.1 write xdm athdir sis xdsc ${OSATHIMAKE}
XIMAKE=		dash tcsh ${OSXIMAKE}
CUSTIMAKE=	olc olh moira ${OSCUSTIMAKE}
PLAINMAKE=	etc jot finger lpquota prototype_tmpuser reactivate tellme \
		${OSPLAINMAKE}
OTHER=		kerberos mh zephyr ${OSOTHER}
PARTIALINSTALL=	motif
NORMALSUBDIRS=	${ATHIMAKE} ${XIMAKE} ${CUSTIMAKE} ${PLAINMAKE} ${OTHER}
ALLSUBDIRS=	${NORMALSUBDIRS} ${PARTIALINSTALL}
INSTSUBDIRS=	${NORMALSUBDIRS} motif/clients/mwm
INSTMANSUBDIRS=	${ATHIMAKE} ${XIMAKE} motif/clients/mwm olc olh zephyr

all::
	for i in ${ALLSUBDIRS}; do (cd $$i && ${MAKE} $@@ || exit 1); done

clean::
	for i in ${ALLSUBDIRS}; do (cd $$i && ${MAKE} $@@ || exit 1); done
	cd kerberos; make depend

install::
	mkdir -p ${DESTDIR}/bin/athena ${DESTDIR}/etc/athena
	mkdir -p ${DESTDIR}/usr/athena/bin ${DESTDIR}/usr/athena/lib
	mkdir -p ${DESTDIR}/usr/athena/etc ${DESTDIR}/usr/athena/man/man1
	mkdir -p ${DESTDIR}/usr/athena/man/man3 ${DESTDIR}/usr/athena/man/man5
	mkdir -p ${DESTDIR}/usr/athena/man/man7 ${DESTDIR}/usr/athena/man/man8
	mkdir -p ${DESTDIR}/usr/athena/lib/X11/app-defaults
	mkdir -p ${DESTDIR}/usr/athena/lib/X11/bitmaps
	for i in ${INSTSUBDIRS}; do (cd $$i && ${MAKE} $@@ || exit 1); done

install.man::
	for i in ${INSTMANSUBDIRS}; do (cd $$i && ${MAKE} $@@ || exit 1); done

Makefiles::
	for i in ${ATHIMAKE} mh; do (cd $$i && imake -I${CONFDIR} && \
		${MAKE} $@@); done
	for i in ${XIMAKE}; do (cd $$i && xmkmf; ${MAKE} $@@); done
	for i in ${CUSTIMAKE}; do (cd $$i && imake -Iconfig; ${MAKE} $@@); done
#ifndef linux
	cd emacs-19.30 && ./configure --prefix=/usr/athena --with-x-toolkit \
		--sharedstatedir=/var/tmp --with-pop --with-hesiod \
		--with-kerberos
	cd perl5.001 && rm -f config.sh && \
		cp arch/${ATHENA_SYS}/config.sh config.sh && \
		./Configure -S; ${MAKE} depend
	cd top && rm -f machine.c && ln -s machine/m_${TOPID}.c machine.c
#endif
	cd kerberos && ./configure --site=athena && make depend
	cd motif && imake -Iconfig -DTOPDIR=`pwd` -DUseInstalled && ${MAKE} $@@
	cd zephyr && imake -Iconfig -DTOPDIR=`pwd` && ${MAKE} $@@

@


1.5
log
@KERBEROS_SYS is unnecessary now.
Add motif to PARTIALINSTALL instead of OTHER, so we don't try to
 install all of it.
@
text
@d8 3
a10 3
#ifndef linux
OSPLAINMAKE=top
OSOTHER=emacs-19.30 perl5.001
d14 1
a14 1
		getcluster gettime gms help hesiod hostinfo ispell \
d61 1
@


1.4
log
@small change for linux
@
text
@d8 1
a8 3
#ifdef linux
KERBEROS_SYS="linux"
#else
d22 2
a23 1
OTHER=		kerberos mh zephyr motif ${OSOTHER}
d62 1
a62 1
	cd kerberos && ./configure --site=athena ${KERBEROS_SYS} && make depend
@


1.3
log
@Added motif to build-list
@
text
@d9 1
a9 1
KERBEROS_SYS=linux
@


1.2
log
@Minor adjustments
@
text
@d24 1
a24 1
OTHER=		kerberos mh zephyr ${OSOTHER}
@


1.1
log
@Initial revision
@
text
@d8 3
a10 1
#ifndef linux
d55 1
a55 1
#ifdef linux
d63 1
a63 1
	cd kerberos && ./configure --site=athena && make depend
@
