# Copyright 2000, International Business Machines Corporation and others.
# All Rights Reserved.
# 
# This software has been released under the terms of the IBM Public
# License.  For details, see the LICENSE file in the top-level source
# directory or online at http://www.openafs.org/dl/license10.html

# Install the des libraries and header files from the 
# PARENT link instead of building them.
#

SHELL  = /bin/sh
include ../config/Makefile.${SYS_NAME}

RM     = /bin/rm
UKERNELDIR=../libuafs/
INSTALL=${SRCDIR}bin/install
SRC    =.
DESPAR =../../../DESLIB/dest/
DESINC =${DESPAR}include/
MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
all:

kinstall:
	@echo No $@ source here.
 
ukinstall webinstall: ${DESINC}des.h ${DESINC}mit-cpyright.h
	set ${UKERNELDIR}des; $(MKDIR_IF_NEEDED)
	${INSTALL} ${DESINC}des.h ${UKERNELDIR}des/des.h
	${INSTALL} ${DESINC}mit-cpyright.h ${UKERNELDIR}des/mit-cpyright.h
	${INSTALL} ${DESPAR}lib/libdes.a ${UKERNELDIR}des/libdes.a

install install.noversion noversion system: ukinstall
	echo "Installing des stubs from ${DESPAR}:" `cd ${DESPAR};/bin/pwd`
	${RM} -f ${DESTDIR}lib/libdes.a
	${INSTALL} ${DESPAR}lib/libdes.a ${DESTDIR}lib/libdes.a
	${INSTALL} ${DESINC}des.h ${DESINC}des_conf.h ${DESINC}mit-cpyright.h ${DESTDIR}include
	${INSTALL} ${DESINC}des_odd.h ${DESTDIR}include/des_odd.h

clean:

lint:

