# 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

srcdir=@srcdir@
include @TOP_OBJDIR@/src/config/Makefile.config

all: pinstall

pinstall: ${srcdir}/install.c AFS_component_version_number.c 
	${CC} ${CFLAGS} ${srcdir}/install.c -o pinstall ${XLIBS} ${PINSTALL_LIBS}

test: pinstall
	csh ./test/test_install

${DEST}/bin/install: pinstall
	${INSTALL} -f $? $@

# Note: Some rule needs to appear here so that OSF's make does not try to
# compile install from install.c. A ";" will not work since other platforms
# complain. That's why we use 'echo'.
install:
	@echo -n

clean:
	$(RM) -f *.o pinstall AFS_component_version_number.c

include ../config/Makefile.version


dest: ${DEST}/bin/install

