#
# Project Athena User Consulting Group
# Copyright (C) 1987 Massachusetts Institute of Technology
#

# NOTE: This Makefile was generated by premake.  Do not edit it directly!
#	Edit the Premakefile and then re-run premake.

#
# Premakefile template by John E Elsbree, MIT Project Athena, 22 November 1987
#
# Component name:  hes
#

#
# Subdirectories that have Makefiles of their own:
#

SUBDIR	=	

#
# Names of scripts, binaries, library files, and manual pages:
#

SCRIPT	=	
BINARY	=	hes
LIBFILE	=	
MANPAGE	=	hes.1

#
# Subdirectory of lib where library files should be installed:
#

LIBDIR	=	

#
# Dependencies and instructions for making binary files:
#

hes: hes.c
	cc hes.c -lhesiod -o hes

## Nothing below this line should need to be changed! #########################

#
# Standard commands:
#

RM	=	/bin/rm
MKDIR	=	/bin/mkdir
LN	=	/bin/ln
INSTALL	=	/usr/bin/install
MACHTYPE=	/bin/athena/machtype
SED	=	/bin/sed
PREMAKE	=	/mit/consult/bin/premake

#
# Directory names:
#

DESTDIR	=
TOPDIR	=	${DESTDIR}/mit/consult
BIN	=	${TOPDIR}/bin
VAXBIN	=	${TOPDIR}/vaxbin
RTBIN	=	${TOPDIR}/rtbin
LIB	=	${TOPDIR}/lib
MAN	=	${TOPDIR}/man

#
# Standard make targets (clean, all, install, makefile):
#

clean:	clean_SUBDIR clean_SCRIPT clean_BINARY clean_LIBDIR \
	clean_LIBFILE clean_MANPAGE
	${RM} -f *~

all:	all_SUBDIR all_SCRIPT all_BINARY all_LIBDIR \
	all_LIBFILE all_MANPAGE

install: install_SUBDIR install_SCRIPT install_BINARY install_LIBDIR \
	install_LIBFILE install_MANPAGE

makefile: makefile_SUBDIR
	${PREMAKE}

clean_SUBDIR:
all_SUBDIR:
install_SUBDIR:
makefile_SUBDIR:

clean_SCRIPT:
all_SCRIPT:
install_SCRIPT:
makefile_SCRIPT:

clean_BINARY:
	${RM} -f ${BINARY} *.o core

all_BINARY: ${BINARY}

install_BINARY:
	bindir=${TOPDIR}/`${MACHTYPE}`bin; \
	for i in ${BINARY}; do \
	    ${INSTALL} -c -m 755 $$i $${bindir}/$$i; \
	done

clean_LIBDIR:
all_LIBDIR:
install_LIBDIR:
makefile_LIBDIR:

clean_LIBFILE:
all_LIBFILE:
install_LIBFILE:
makefile_LIBFILE:

clean_MANPAGE:

all_MANPAGE:

install_MANPAGE:
	for i in ${MANPAGE}; do \
	    (section=`echo $$i | ${SED} 's/[A-Za-z0-9_\-]*\.//'`; \
	    ${INSTALL} -c -m 644 $$i ${MAN}/man$${section}/$$i); \
	done

