# 
# Mach Operating System
# Copyright (c) 1991,1990 Carnegie Mellon University
# All Rights Reserved.
# 
# Permission to use, copy, modify and distribute this software and its
# documentation is hereby granted, provided that both the copyright
# notice and this permission notice appear in all copies of the
# software, derivative works or modified versions, and any portions
# thereof, and that both notices appear in supporting documentation.
# 
# CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS 
# CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
# ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
# 
# Carnegie Mellon requests users of this software to return to
# 
#  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
#  School of Computer Science
#  Carnegie Mellon University
#  Pittsburgh PA 15213-3890
# 
# any improvements or extensions that they make and grant Carnegie the
# rights to redistribute these changes.
# 
#
# HISTORY
# $Log:	Makefile,v $
# Revision 2.6  92/03/05  22:49:10  rpd
# 	Changed to use Makefile-man.
# 	[92/02/29            rpd]
# 
# Revision 2.5  92/02/16  16:07:22  rpd
# 	Changed libcs to libcmucs.
# 
# Revision 2.4  92/01/22  22:52:46  rpd
# 	Revised for new Makefile organization.
# 	[92/01/17            rpd]
# 

include ${MAKETOP}Makefile-common

PROGRAM = w
MAN1PAGES = w

OBJECTS = w.o
LIBRARIES = CMUCS

include ${MAKETOP}Makefile-bin
include ${MAKETOP}Makefile-man

# also link w to uptime

all :: uptime.man

install :: ${INSTALLDIR}/bin/uptime ${INSTALLDIR}/man/man1/uptime.1

${INSTALLDIR}/bin/uptime : ${INSTALLDIR}/bin/w
	${RM} $@
	ln $? $@

${INSTALLDIR}/man/man1/uptime.1 : uptime.man
	${RM} $@
	${CP} $? $@
	${CHMOD_MAN} $@

release :: ${TRELEASEDIR}/bin/uptime ${TRELEASEDIR}/man/man1/uptime.1

${TRELEASEDIR}/bin/uptime : ${TRELEASEDIR}/bin/w
	${RM} $@
	ln $? $@

${TRELEASEDIR}/man/man1/uptime.1 : ${FRELEASEDIR}/man/man1/uptime.1
	${RM} $@
	${CP} $? $@

clean ::
	${RM} ${INSTALLDIR}/bin/uptime ${INSTALLDIR}/man/man1/uptime.1

-include Makedep
