#
# Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
#                         University Research and Technology
#                         Corporation.  All rights reserved.
# Copyright (c) 2004-2005 The University of Tennessee and The University
#                         of Tennessee Research Foundation.  All rights
#                         reserved.
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, 
#                         University of Stuttgart.  All rights reserved.
# Copyright (c) 2004-2005 The Regents of the University of California.
#                         All rights reserved.
# $COPYRIGHT$
# 
# Additional copyrights may follow
# 
# $HEADER$
#

nodist_pkgdata_DATA = 
dist_pkgdata_DATA = \
	help-orte-restart.txt

bin_PROGRAMS = orte-restart

orte_restart_SOURCES = \
	orte-restart.c

# Manual pages
man_MANS = orte-restart.1 ompi-restart.1
EXTRA_DIST = orte-restart.1

orte_restart_LDADD = $(top_builddir)/orte/libopen-rte.la
orte_restart_DEPENDENCIES = $(top_builddir)/orte/libopen-rte.la

install-exec-hook:
	(cd $(DESTDIR)$(bindir); rm -f ompi-restart$(EXEEXT); $(LN_S) orte-restart$(EXEEXT) ompi-restart$(EXEEXT))

uninstall-local:
	rm -f $(DESTDIR)$(bindir)/ompi-restart$(EXEEXT)

ompi-restart.1: $(top_srcdir)/orte/tools/orte-restart/orte-restart.1
	cp -f $(top_srcdir)/orte/tools/orte-restart/orte-restart.1 ompi-restart.1

distclean-local:
	rm -f ompi-restart.1